Feb 12, 2019 05:55 PM
(This post was last modified: Feb 12, 2019 09:10 PM by gigajew.)
This is encryption/decryption class that uses a combination between asymmetric RSA and symmetric AES to produce safe encryption. Almost like SSL. (Does not support Windows XP and below). Your data gets encrypted with AES using a random key and iv combination, and then the key to decrypt that data gets encrypted with a public key that the clients have. That way anyone, or any client can encrypt data but only you can decrypt it again with the private key.
Method list:
[*]public string GeneratePublicKey();
[*]public string GeneratePrivateKey();
[*]public string DecryptString(EncryptedBlob blob, string private_asymmetric_key);
[*]public byte[] DecryptData(EncryptedBlob blob, string private_asymmetric_key);
[*]public EncryptedBlob EncryptString(string raw_message, string public_asymmetric_key);
[*]public EncryptedBlob EncryptData(byte[] raw_binary_data, string public_asymmetric_key);
[*]public void Dispose();
Example usage:
Source code:
Method list:
[*]public string GeneratePublicKey();
[*]public string GeneratePrivateKey();
[*]public string DecryptString(EncryptedBlob blob, string private_asymmetric_key);
[*]public byte[] DecryptData(EncryptedBlob blob, string private_asymmetric_key);
[*]public EncryptedBlob EncryptString(string raw_message, string public_asymmetric_key);
[*]public EncryptedBlob EncryptData(byte[] raw_binary_data, string public_asymmetric_key);
[*]public void Dispose();
Example usage:
Source code:
![[Image: Syr3DlV.png]](https://i.imgur.com/Syr3DlV.png)

