Encryption.ProtectString

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 ProtectString(string encryptString,
	string 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, 2019 • Updated: 06/23/19
Comment or report problem with topic