CryptographyHelper Class

Definition

Namespace: CoreMX.NET.Helpers
Assembly: CoreMX.NET (in CoreMX.NET.dll) Version: 1.0.0+7eb54d7f3459576d25646e9f286fb1fe49eac8a5
C#
public static class CryptographyHelper
Inheritance
Object    CryptographyHelper

Methods

DecryptT(T, Byte, Byte, Byte) Decrypts a byte array using the specified symmetric algorithm.
DecryptT(T, String, Byte, Byte, Encoding) Decrypts a base64 string using the specified symmetric algorithm returning a string.
DecryptT(T, String, String, String, Encoding) Decrypts a base64 string using the specified symmetric algorithm returning a string.
DecryptRSA(Byte, String, RSAEncryptionPadding) Decrypts a byte array using the specified RSA private key.
DecryptRSA(String, String, RSAEncryptionPadding, Encoding) Decrypts a base64 string using the specified RSA private key.
EncryptT(T, Byte, Byte, Byte) Encrypts a byte array using the specified symmetric algorithm.
EncryptT(T, String, Byte, Byte, Encoding) Encrypts a string using the specified symmetric algorithm returning a base64 string.
EncryptT(T, String, String, String, Encoding) Encrypts a string using the specified symmetric algorithm returning a base64 string.
EncryptRSA(Byte, String, RSAEncryptionPadding) Encrypts a byte array using the specified RSA public key.
EncryptRSA(String, String, RSAEncryptionPadding, Encoding) Encrypts a string using the specified RSA public key.
GenerateRSAKeys 
HashT(T, Byte) Hashes a byte array using the specified hash algorithm.
HashT(T, String, Encoding, Boolean) Hashes a string using the specified hash algorithm.
HashSHA256 Hashes a string using the SHA256 algorithm.
HashSHA384 Hashes a string using the SHA384 algorithm.
HashSHA512 Hashes a string using the SHA512 algorithm.
SignRSA(Byte, String, NullableHashAlgorithmName, RSASignaturePadding) Signs a byte array using the specified RSA private key.
SignRSA(String, String, NullableHashAlgorithmName, RSASignaturePadding, Encoding) Signs a string using the specified RSA private key.
VerifyRSASignature(Byte, Byte, String, NullableHashAlgorithmName, RSASignaturePadding) Verifies a byte array using the specified RSA public key.
VerifyRSASignature(String, String, String, NullableHashAlgorithmName, RSASignaturePadding, Encoding) Verifies a string using the specified RSA public key.

See Also