Added:
- SHA512 hash, exposed as
SHA512
- MD5 hash, exposed as
unsafeMD5
arrayToHexString
createCleartextMessage
Changed:
getCleartextMessage
now reads an armored message instead of creating one. To create one thecreateCleartextMessage
should be used. This is to have consistency with thegetMessage
,createMessage
,getSignature
etc functions.
Removed:
getHashedPassword
not used.
openpgp is installed by this library as a dependency.
However it must be passed to pmcrypto
because the client needs to choose which bundle of openpgpjs to use.
Now, pmcrypto must to be initialized with openpgp using the init function.
import { init } from 'pmcrypto';
init(require('openpgp'));