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:14


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:34