Skip to content

Releases: safebash/opencrypto

v1.5.5

02 Feb 09:41
Compare
Choose a tag to compare

This release includes types for TypeScript projects. This is a contribution from @distante from pull request #13

  • Added types for TypeScript projects

v1.5.3

20 Dec 22:24
Compare
Choose a tag to compare

This release includes a new method as suggested by @alpastar in issue #7

  • Method getPublicKey retrieves a public key from an existing private key

v1.5.2

18 Dec 19:29
Compare
Choose a tag to compare

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

12 Dec 14:19
Compare
Choose a tag to compare

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

10 Dec 13:16
Compare
Choose a tag to compare

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

10 Dec 09:57
Compare
Choose a tag to compare

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

26 Nov 21:11
Compare
Choose a tag to compare

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

02 Feb 23:43
Compare
Choose a tag to compare

Added functionality process fingerprints of symmetric keys.

v1.3.4

30 Jan 22:50
Compare
Choose a tag to compare

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

02 Apr 13:10
Compare
Choose a tag to compare

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