C# Class Rainy.Crypto.CryptoHelperDBUser

Afficher le fichier Open project: Dynalon/Rainy

Méthodes publiques

Méthode 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 méthode

public static ComputePasswordHash ( this db_user, string password ) : string
db_user this
password string
Résultat string

CreateCryptoFields() public static méthode

public static CreateCryptoFields ( this db_user, string password ) : void
db_user this
password string
Résultat void

DecryptUnicodeString() public static méthode

public static DecryptUnicodeString ( this user, byte key, byte ciphertext ) : string
user this
key byte
ciphertext byte
Résultat string

DeriveKeyFromPassword() public static méthode

public static DeriveKeyFromPassword ( this user, string password ) : byte[]
user this
password string
Résultat byte[]

EncryptString() public static méthode

public static EncryptString ( this user, byte key, string plaintext ) : byte[]
user this
key byte
plaintext string
Résultat byte[]

GetPlaintextMasterKey() public static méthode

public static GetPlaintextMasterKey ( this user, string password ) : byte[]
user this
password string
Résultat byte[]

UpdatePassword() public static méthode

public static UpdatePassword ( this db_user, string password ) : bool
db_user this
password string
Résultat bool