Skip to content

ElectronSafeStorage.isEncryptionAvailable method

ElectronSafeStorage › isEncryptionAvailable

Unofficial

Whether encryption is available.

On Linux, returns true if the app has emitted the ready event and the secret key is available. On macOS, returns true if Keychain is available. On Windows, returns true once the app has emitted the ready event.

Signature:

isEncryptionAvailable(): boolean

Returns: booleantrue if string encryption is available on the current platform.