Skip to content

ElectronSafeStorage.decryptString method

ElectronSafeStorage › decryptString

Unofficial

Decrypts the encrypted buffer obtained with encryptString back into a string.

This function will throw an error if decryption fails.

Signature:

decryptString(encrypted: Buffer): string

Parameters:

Parameter Type Description
encrypted Buffer The buffer produced by encryptString.

Returns: stringThe decrypted string.