ElectronSafeStorage.decryptString method
ElectronSafeStorage › decryptString
Unofficial
Decrypts the encrypted buffer obtained withencryptString back into a string.This function will throw an error if decryption fails.
Signature:
decryptString(encrypted: Buffer): stringParameters:
| Parameter | Type | Description |
|---|---|---|
| encrypted | Buffer | The buffer produced by encryptString. |
Returns: string — The decrypted string.