h3imdall / ftp-remote-edit

Edit files on ftp servers with Atom editor and without a workspace.
MIT License
178 stars 27 forks source link

Export serverlist? #357

Closed janstieler closed 4 years ago

janstieler commented 4 years ago

Hi, is it possible to export all my servers as a list width password? Not only a decrypted config string from the config.cson or is it possible to decrypt the string?

Cheers

cschindl commented 4 years ago

Hi @janstieler,

at the moment there is no possibility to export the list unencrypted. The data is encrypted by aes-256-ctr with your master password. So you could only decrypt the encrypted information yourself.

const crypto = require('crypto');

password = 'ENTER PASS HERE';
text = 'COPY ENCRYPTED DATA HERE';

let decipher = crypto.createDecipher('aes-256-ctr', password);
let dec = decipher.update(text, 'hex', 'utf8');

console.log(dec);