C# Class Zazzles.Data.DPAPI

Exibir arquivo Open project: FOGProject/zazzles

Public Methods

Method Description
ProtectData ( byte data, bool userScope ) : byte[]

Securly protect bytes by using local credentials

UnProtectData ( byte data, bool userScope ) : byte[]

Unprotect bytes by using local credentials

Method Details

ProtectData() public static method

Securly protect bytes by using local credentials
public static ProtectData ( byte data, bool userScope ) : byte[]
data byte The bytes to protect
userScope bool Encrypt the data as the current user (false means use the local machine)
return byte[]

UnProtectData() public static method

Unprotect bytes by using local credentials
public static UnProtectData ( byte data, bool userScope ) : byte[]
data byte The bytes to unprotect
userScope bool Decrypt the data as the current user (false means use the local machine)
return byte[]