Encryption.UnprotectString

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 string UnprotectString(string encryptString,
	Byte[] key,
	DataProtectionScope scope,
	bool useBinHex)

Parameters

encryptString

key

scope

useBinHex
returns bin hex data when set (010A0D10AF)

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