Releases: Meeco/cryppo-js
releases/2.0.0-beta.2
bump up beta version
releases/2.0.0-beta.1
exported missing EncryptionKey class and fix documentation for decryption.
2.0.0-beta.0
beta release version 2.0
It contains breaking changes.
following methods now accepts data as bytes (Uint8Array) and key as EncryptionKey (class)
- encryptWithKey
- encryptWithGeneratedKey
- encryptWithKeyDerivedFromString
the following method now decrypt and return bytes (Uint8Array)
- decryptWithKey
0.9.0
Allow separate encoding for string and binary.
The previous version default encoding was 'raw', suitable for binaries and 1-byte UTF-8 string. It was not suitable to encrypt and decrypt multi bytes UTF-8 string. e.g. data string '鍵键' encrypted with 'raw' encoding will produce incorrect decrypted value.
This version introduces separate encoding for string and binary and provides two different methods to encrypt and decrypt string and binary.
HMAC support and not encrypting empty strings
Functions
- encryptWithKey
- encryptWithKeyUsingArtefacts
now return null instead of a serialised blank string when encrypting an empty string
Functions - decryptWithKey
- decryptWithKeyUsingArtefacts
now return null when decrypting a serialised empty string
New exposed function
- hmacSha256Digest
allow creating Hmac digest as Hex
Add function to support HMAC digest
0.6.2
Only run legacy encryption fallback when key derivation is required
- Fixes an issue that caused failed encryptions would hit max call stack issue.
exposed extra util method deSerializeDerivedKeyOptions
exposed extra util method deSerializeDerivedKeyOptions