Module to decrypt the database file created by enpass with given credentials.
npm install enpass-decryptor-jsAllows to decrypt Enpass walletx.db database files via Node.js.
npm install --save enpass-decryptor-js
Next you can call connect and pass it a callback and the configuration for the database (path and password).
Within the callback you can access the complete Enpass database.
``js
const enpass = require('enpass-decryptor-js');
enpass.connect((err, db) => {
db.getPasswordsWithTitle('Github', (err, passwords) => {
console.log(passwords.join('\n'));
});
db.disconnect();
}, {
database_path: '/home/someone/Documents/walletx.db',
password: '#SuperS3cr3tP4assw0rd'
});
``
Of course you should not save the password in a cleartext file!
Addtionally, they encrypt the sensitive data with an extra PBKDF2 cipher (as explained in their FAQ).
Database structure is explained in Dataformat.md
Based on the python implementation steffen9000/enpass-decryptor