프로퍼티 | 타입 | 설명 | |
---|---|---|---|
CryptidSalt | byte[] | ||
CryptidSaltHash | byte[] |
메소드 | 설명 | |
---|---|---|
AES_Decrypt ( byte data, string password ) : byte[] |
Decrypts a set of data with AES256 CBC. Passwords are hashed with SHA256 and then derived with RFC2898 to get the final key.
|
|
AES_Encrypt ( byte data, string password ) : byte[] |
Encrypts a set of data with AES256 CBC. Passwords are hashed with SHA256 and then derived with RFC2898 to get the final key.
|
|
RSA_Sign ( byte data, |
Signs a set of data with a provided RSA private key
|
|
RSA_Verify ( byte data, byte sig, |
Verifies an RSA signature for a set of data
|
|
Sha256D ( byte toHash ) : byte[] |
Double hash a set of data with SHA256
|
메소드 | 설명 | |
---|---|---|
AES_Decrypt ( byte bytesToBeDecrypted, byte passwordBytes ) : byte[] |
Decrypts a set of data with AES256 CBC. Keys are derived with RFC2898.
|
|
AES_Encrypt ( byte bytesToBeEncrypted, byte passwordBytes ) : byte[] |
Encrypts a set of data with AES256 CBC. Keys are derived with RFC2898.
|
public static AES_Decrypt ( byte data, string password ) : byte[] | ||
data | byte | The data to decrypt |
password | string | The password to decrypt the data |
리턴 | byte[] |
public static AES_Encrypt ( byte data, string password ) : byte[] | ||
data | byte | The data to encrypt |
password | string | The password to encrypt the data with |
리턴 | byte[] |
public static RSA_Sign ( byte data, |
||
data | byte | The data to sign |
privKey | The RSAParameters representing the private key | |
리턴 | byte[] |
public static RSA_Verify ( byte data, byte sig, |
||
data | byte | The data to verify |
sig | byte | The signature to verify with |
pubKey | The public key to use to verify | |
리턴 | bool |
public static Sha256D ( byte toHash ) : byte[] | ||
toHash | byte | The data to hash |
리턴 | byte[] |