Node.js library for reading and writing KeePass databases
keepass.io is a Node.js library for reading and writing KeePass databases. Please note that currently only the newest database version, called KDBX, is supported. Features include so far:
Password and/or Keyfile credentials: keepass.io supports both of the most common used credential types for KeePass databases.
Powerful API: This library offers you a powerful API, which even allows you raw access to the database, so even unsupported third-party fields can be modified.
Stunning performance: To further improve performance, keepass.io even includes an optional native library, which will help while performing the key transformations. If your system should not have the Crypto++ Dev Libraries installed, it will automatically fallback to the slower Node.js methods.
Note: keepass.io is currently under active development. As such, while this library is well-tested, the API might change at anytime. Consider using it in production applications only if you're comfortable following a changelog and updating your usage accordingly.
As mentioned above, keepass.io is really easy to use. The following example code opens a database, outputs its name, changes the name to 'KeePass.IO rocks!' and saves the database with new credentials. More examples are available within the examples folder.
var path = require'path';var kpio = require'../lib';var db = ;dbaddCredentialPassword'thematrix';dbaddCredentialKeyfile'apoc.key';dbloadFiledatabasePathiferr throw err;var rawDatabase = dbgetRawApiget;console.log'Database name: ' + rawDatabaseKeePassFileMetaDatabaseName;rawDatabaseKeePassFileMetaDatabaseName = 'KeePass.IO rocks!';dbresetCredentials;dbaddCredentialPassword'morpheus';dbaddCredentialKeyfile'trinity.key';dbgetRawApisetrawDatabase;dbsaveFilenewDatabasePathiferr throw err;;;
Copyright © 2013-2014 Pascal Mathis. All rights reserved.