Этот API удобно предоставляется в .NET через класс ProtectedData:
Код: Выделить всё
// Encrypts the data in a specified byte array and returns a byte array
// that contains the encrypted data.
public static byte[] Protect(
byte[] userData,
byte[] optionalEntropy,
DataProtectionScope scope
)
// Decrypts the data in a specified byte array and returns a byte array
// that contains the decrypted data.
public static byte[] Unprotect(
byte[] encryptedData,
byte[] optionalEntropy,
DataProtectionScope scope
)
Каковы мои альтернативы, если их нет?
Подробнее здесь: https://stackoverflow.com/questions/603 ... i-on-linux
Мобильная версия