Releases: safebash/opencrypto
v1.5.5
v1.5.3
v1.5.2
This release includes several new methods and improvements.
- Method cryptoToBase64 encodes CryptoKey to its plain base64 representation
- Method base64ToCrypto decodes base64 key encoded with cryptoToBase64 method back to CryptoKey representation
- Method encryptKey now supports encryption of nearly all types of keys including, private and public keys of ECDH, ECDSA, RSA-OAEP, RSA-PSS
- Method decryptKey now supports decryption of all keys encrypted with method encryptKey
- Method signKey performs digital signature of cryptographic keys with either ECDSA or RSA-PSS
- Method verifyKey verifies authenticity of the digital signature of a cryptographic key created with the method signKey
- Method derivePassphraseKey derives a cryptographic key from a string
v1.4.8
This release includes bug fix and minor changes.
- Fixes undefined variable name in sign() method
- Method name cryptoKeyToFingerprint() changed to getFingerprint()
- Method verify parameters changed from verify(publicKey, signature, data, options) to verify(publicKey, data, signature, options)
v1.4.7
This release introduces a few changes to the keyFromPassphrase method.
- Method's name changed to hashPassphrase()
- Salt parameter now accepts ArrayBuffer directly
v1.4.6
This release introduces new method keyAgreement() which replaces ECDH key encryption using the method encryptKey().
- Method keyAgreement includes a built-in KDF specifically HKDF for key derivation from shared secret
- Method getRandomData() was renamed to getRandomBytes()
- Method getRandomBytes() now returns ArrayBuffer directly instead of base64 String
v1.4.0
This release introduces full elliptic curve cryptography support.
- All methods now use elliptic curves for their defaults.
- It is now possible to encrypt symmetric keys using ECDH and sign data using ECDSA.
- This release also fixes an issue that could occur during encryption or decryption of the elliptic curve private keys.
Methods' parameters and some names have been changed, therefore you should follow the documentation to update your current environment accordingly.
v1.3.5
Added functionality process fingerprints of symmetric keys.
v1.3.4
This version includes extended support for elliptic curve cryptography.
Some names of methods have changed, make sure your code is updated accordingly before upgrading to new version.
You can:
-
encrypt EC private key
-
decrypt EC private key
-
convert EC CryptoKey private key to PEM
-
convert EC PEM private key to CryptoKey
-
convert EC CryptoKey public key to PEM
-
convert EC PEM public key to CryptoKey
-
encryption methods now accept ArrayBuffer as data input directly
v1.2.0
This version contains code that was completely rewritten to ES6 JavaScript. You can use the library directly in your project if you're using e.g. Webpack where it gets automatically compiled by babel-loader or you can use the already pre-compiled and minified version in dist folder.
Please note that getSessionKey method was renamed to getSharedKey
New code follows JavaScript Standard Style https://standardjs.com