RSA Encryptor
More...
|
override byte[] | Decrypt (byte[] Input, string Key) |
| Decrypts a byte array using RSA More...
|
|
override byte[] | Encrypt (byte[] Input, string Key) |
| Encrypts a string using RSA More...
|
|
override string | SignHash (string Input, string Key, out string Hash, Encoding EncodingUsing=null) |
| Takes a string and creates a signed hash of it More...
|
|
override bool | VerifyHash (string Hash, string SignedHash, string Key) |
| Verifies a signed hash against the unsigned version More...
|
|
string | CreateKey (bool PrivatePublic) |
| Creates a new set of keys More...
|
|
RSA Encryptor
Definition at line 34 of file RSA.cs.
override byte [] Utilities.IO.Encryption.Default.RSA.Decrypt |
( |
byte[] |
Input, |
|
|
string |
Key |
|
) |
| |
|
virtual |
override byte [] Utilities.IO.Encryption.Default.RSA.Encrypt |
( |
byte[] |
Input, |
|
|
string |
Key |
|
) |
| |
|
virtual |
override System.Security.Cryptography.AsymmetricAlgorithm Utilities.IO.Encryption.Default.RSA.GetProvider |
( |
| ) |
|
|
protectedvirtual |
override string Utilities.IO.Encryption.Default.RSA.SignHash |
( |
string |
Input, |
|
|
string |
Key, |
|
|
out string |
Hash, |
|
|
Encoding |
EncodingUsing = null |
|
) |
| |
|
virtual |
Takes a string and creates a signed hash of it
- Parameters
-
Input | Input string |
Key | Key to encrypt/sign with |
Hash | This will be filled with the unsigned hash |
EncodingUsing | Encoding that the input is using (defaults to UTF8) |
- Returns
- A signed hash of the input (64bit string)
Implements Utilities.IO.Encryption.BaseClasses.AsymmetricBase.
Definition at line 91 of file RSA.cs.
override bool Utilities.IO.Encryption.Default.RSA.VerifyHash |
( |
string |
Hash, |
|
|
string |
SignedHash, |
|
|
string |
Key |
|
) |
| |
|
virtual |
Verifies a signed hash against the unsigned version
- Parameters
-
Hash | The unsigned hash (should be 64bit string) |
SignedHash | The signed hash (should be 64bit string) |
Key | The key to use in decryption |
- Returns
- True if it is verified, false otherwise
Implements Utilities.IO.Encryption.BaseClasses.AsymmetricBase.
Definition at line 113 of file RSA.cs.
override string Utilities.IO.Encryption.Default.RSA.Name |
|
get |
Name
Definition at line 39 of file RSA.cs.
The documentation for this class was generated from the following file:
- Utilities/IO/Encryption/Default/RSA.cs