Skip to main content

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​

NameType
organizationSecretstring
hexEncodedCiphertextstring

Returns​

Type<string>

Defined in​

src/lib/symmetricCrypto.ts:15


encrypt​

▸ encrypt(organizationSecret, plaintext): string

Encrypts a string and returns resulting hex-encoded ciphertext.

Parameters​

NameType
organizationSecretstring
plaintextstring

Returns​

string

Defined in​

src/lib/symmetricCrypto.ts:35