ISecureStringEncryptor

Ecng.Serialization

Encrypts and decrypts SecureString payloads. The instance used across the package - by SecureStringHelper and the JSON / SettingsStorage primitive path - can be replaced process-wide via Encryptor or locally via Scope, letting an application plug in its own secret or algorithm instead of the built-in default.

Métodos

Decrypt
public SecureString Decrypt(byte[] cipher)
result = iSecureStringEncryptor.Decrypt(cipher)

Decrypts previously produced by SecureString).

cipher
Encrypted bytes; returns .

Retorna: Original SecureString, or when is .

Encrypt
public byte[] Encrypt(SecureString value)
result = iSecureStringEncryptor.Encrypt(value)

Encrypts to a byte array.

value
SecureString to encrypt; returns .

Retorna: Encrypted bytes, or when is .