v7
Notice:
v7 is NOT backwards-compatible with v6. There are known bugs in v6 that were fixed in v7, so we highly recommend that you update your program to work with v7 as soon as possible.
Breaking Changes:
- Updated the pbkdf2 algorithm that uses PBKDF2-HMAC-SHA256, the v7 pbkdf2 algorithm is more secure but will derive different keys compared to the v6 algorithm
- Removed SJCL as a dependency and deleted it from
tEnvoy.core
.
Features (since v6.0.6):
- Add ephemeral encryption and decryption capabilities to
tEnvoyNaClKey
with the methodsencryptEphemeral(message, nonce, ?password)
anddecryptEphemeral(encryptedEphemeral, ?password)
- Deterministically generate
tEnvoyPGPKey
usingkeyFactory.genPGPKeys({keyArmored: "..."})
- Deterministically generate
tEnvoyNaClKey
usingkeyFactory.genNaClKeys({key: "...", keyType: "..."})
- Add
util.arrayDeepCopy
to create a deep copy of anArray
orUint8Array
- Add a
setPasswordProtected
method to key objects to update the methods that require a password (this method will always require a password) - Switched key storage to always use a
Uint8Array
for storing keys in long-term memory - Added a
destroy
method to key objects to zero out theUint8Array
key in memory and delete all methods from the key
Bugfixes (since v6.0.6):
- Fixed a bug with
util.hexToString