Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 616 Bytes

FUNCTION.md

File metadata and controls

15 lines (10 loc) · 616 Bytes

Functions

encryptRsa

▸ encryptRsa(publicKey: string, data: string, algorithm: string): string

Name Type Description
publicKey string Public key in PEM format to encrypt
data string Data to be encrypted
algorithm string Algorithm to be used. Accepts: sha256 and sha512 (default)

Returns: string

The data encrypted using the chose algorithm