Creates a ready-to-pipe decrypting (transforming) stream.
Available options:
rounds
Number of PBKDF2 (HMAC-SHA1) rounds to perform, defaults to 100000.
Command line
Pretty much the same as available through the API, but with the exception that the application will ask for the
passphrase if it is not specified as an argument. The number of PBKDF2 rounds defaults to 100000.
keystore list|add|get|del ... Run keystore for the details
Stores
endecrypt provides the tools to en-/decrypt arbitrary JSON data including binary buffers and utilizes the
PSON data format internally for the purpose of converting JSON data to its binary
representation prior to encryption and vice-versa. In endecrypt this is called a store.
Likewise, the keystore utility works with one level of nesting, making it effectively a key-value store (plain
object to PSON). A possible use case could be to store a set of private keys and certificates in an endecrypt store to
be able to use a common password once to access all the confidential entries. Unlike with other keystores like JKS
there is no item-level access control mechanism, just a global one.
Using the API it is possible to put any form of JSON data into a store, not just plain objects.
Examples
The file README.md.crypt has been generated through encrypt README.md -p=123 > README.md.crypt and can be
decrypted using decrypt README.md.crypt -p=123.
Considerations
endecrypt uses node's stock PBKDF2 implementation which uses HMAC-SHA1 to derive keys. Thus, the effective entropy is
160 bits aligned to 256 bits of AES which may change with future versions (i.e. when the guys at node.js implement
SHA256).