메소드 | 설명 | |
---|---|---|
Decrypt ( byte Input, string Key ) : byte[] |
Decrypts a byte array using RSA
|
|
Encrypt ( byte Input, string Key ) : byte[] |
Encrypts a string using RSA
|
|
SignHash ( string Input, string Key, string &Hash, |
Takes a string and creates a signed hash of it
|
|
VerifyHash ( string Hash, string SignedHash, string Key ) : bool |
Verifies a signed hash against the unsigned version
|
메소드 | 설명 | |
---|---|---|
GetProvider ( ) : |
Gets the provider used
|
public Decrypt ( byte Input, string Key ) : byte[] | ||
Input | byte | /// Input byte array (should be small as anything over 128 bytes can not be decrypted) /// |
Key | string | Key to use for decryption |
리턴 | byte[] |
public Encrypt ( byte Input, string Key ) : byte[] | ||
Input | byte | /// Input byte array (should be small as anything over 128 bytes can not be decrypted) /// |
Key | string | Key to use for encryption |
리턴 | byte[] |
protected GetProvider ( ) : |
||
리턴 |
public SignHash ( string Input, string Key, string &Hash, |
||
Input | string | Input string |
Key | string | Key to encrypt/sign with |
Hash | string | This will be filled with the unsigned hash |
EncodingUsing | Encoding that the input is using (defaults to UTF8) | |
리턴 | string |
public VerifyHash ( string Hash, string SignedHash, string Key ) : bool | ||
Hash | string | The unsigned hash (should be 64bit string) |
SignedHash | string | The signed hash (should be 64bit string) |
Key | string | The key to use in decryption |
리턴 | bool |