Encrypt bytes using the Data Protection API on Windows. This API uses internal keys to encrypt data which is valid for decryption only on the same machine.
This is an idea storage mechanism for application registraions, service passwords and other semi-transient data that is specific to the software used on the current machine
public static Byte[] ProtectBytes(Byte[] encryptBytes, string key, DataProtectionScope scope)
Parameters
encryptBytes
key
scope
Remarks
DO NOT USE FOR DATA THAT WILL CROSS MACHINE BOUNDARIES
Overloads:
See also:
Class Encryption© West Wind Technologies, 1996-2020 • Updated: 07/15/20
Comment or report problem with topic