Went full circle. Back to a pure collection of functions. Cipher is set to ECDH P-521 AES-256-CBC.
Features:
- initialization vector included in cipher, no manual iv generation needed anymore
- import and export encrypted private key pems
Breaking changes:
- all functions previously under
utils
are now toplevel exports - no more
Webcryptobox
class, class methods moved to toplevel exports using preselected cipher derivePrivateKey
has been renamed togetPrivateKey
A restructured Webcryptobox, with configurable cipher. The export is now a class, which has to be initialized.
Features:
- configurable ciphers:
- choose between
P-256
,P-384
andP-521
ec curves - choose a aes cipher:
GCM
orCBC
- choose aes key length:
128
or256
- choose between
- new functions
importKey
andexportKey
to exchange aes keys
Breaking changes:
- decode and encode functions have been moved to
utils
export:decodeText
encodeText
decodeHex
encodeHex
decodeBase64
encodeBase64
Webcryptobox
export is now a class, which is instantiated withcurve
,mode
andlength
parameters configuring the ciphersgenerateSha1Fingerprint
has been renamed tosha1Fingerprint
generateSha256Fingerprint
has been renamed tosha256Fingerprint
Fix:
- PEM wrapping has been set to 64 chars according to the standard
Introduction of a SHA-1 fingerprint function: generateSha1Fingerprint
.
Breaking change:
- rename
generateFingerprint
togenerateSha256Fingerprint
Small improvement: break lines after 80 chars in PEMs.
Fixes typo in example on README.
Tightened the npm package by removing non-essential files.
Initial release of Webcryptobox