lib/symmetricCrypto
Api Code Documentation / Exports / lib/symmetricCrypto
Table of contents
Functions
Functions
decrypt
▸ decrypt(organizationSecret, hexEncodedCiphertext): Type<string>
Decrypts a hex-encoded ciphertext and returns the resulting string.
Parameters
| Name | Type |
|---|---|
organizationSecret | string |
hexEncodedCiphertext | string |
Returns
Type<string>
Defined in
encrypt
▸ encrypt(organizationSecret, plaintext): string
Encrypts a string and returns resulting hex-encoded ciphertext.
Parameters
| Name | Type |
|---|---|
organizationSecret | string |
plaintext | string |
Returns
string