C# Class Rainy.Crypto.CryptoHelperDBUser

Exibir arquivo Open project: Dynalon/Rainy

Public Methods

Method Description
ComputePasswordHash ( this db_user, string password ) : string
CreateCryptoFields ( this db_user, string password ) : void
DecryptUnicodeString ( this user, byte key, byte ciphertext ) : string
DeriveKeyFromPassword ( this user, string password ) : byte[]
EncryptString ( this user, byte key, string plaintext ) : byte[]
GetPlaintextMasterKey ( this user, string password ) : byte[]
UpdatePassword ( this db_user, string password ) : bool

Method Details

ComputePasswordHash() public static method

public static ComputePasswordHash ( this db_user, string password ) : string
db_user this
password string
return string

CreateCryptoFields() public static method

public static CreateCryptoFields ( this db_user, string password ) : void
db_user this
password string
return void

DecryptUnicodeString() public static method

public static DecryptUnicodeString ( this user, byte key, byte ciphertext ) : string
user this
key byte
ciphertext byte
return string

DeriveKeyFromPassword() public static method

public static DeriveKeyFromPassword ( this user, string password ) : byte[]
user this
password string
return byte[]

EncryptString() public static method

public static EncryptString ( this user, byte key, string plaintext ) : byte[]
user this
key byte
plaintext string
return byte[]

GetPlaintextMasterKey() public static method

public static GetPlaintextMasterKey ( this user, string password ) : byte[]
user this
password string
return byte[]

UpdatePassword() public static method

public static UpdatePassword ( this db_user, string password ) : bool
db_user this
password string
return bool