The secret key used to decrypt (same as the one to encrypt, generated by generateEncryptionKey).
encrypt returns the ciphertext of the given plaintext.
The secret key used to encrypt (generated by generateEncryptionKey).
exportKey exports a CryptoKey to a JSON Web Key. The CryptoKeyPair should be the same as returned by generateEncryptionKey.
fromB64 decodes the given Base64 to the corresponding JSON Web Key representation.
generateEncryptionKey generates a cryptoKeyPair with sane defaults to be used for symmetric encryption purpose.
importKey imports a JSON Web Key to a CryptoKey. The JSON Web Key should be the same as returned by exportKey.
toB64 encodes the given JSON Web Key to the base64 representation
Generated using TypeDoc
decrypt decrypts the given ciphertext.