Click or drag to resize

CryptoHelper Class

Static helper methods for hashing, AES, Triple DES and RSA encryption, available in Razor scripts
Inheritance Hierarchy
SystemObject
  Seal.HelpersCryptoHelper

Namespace: Seal.Helpers
Assembly: SealLibrary (in SealLibrary.dll) Version: 10.0.1.0+a44cd3a7f03c2bf3cdbd971a878c679e40bed08a
Syntax
C#
public class CryptoHelper

The CryptoHelper type exposes the following members.

Constructors
 NameDescription
Public methodCryptoHelperInitializes a new instance of the CryptoHelper class
Top
Methods
 NameDescription
Public methodStatic memberDecryptAES Decrypt a base64 text with a key using AES
Public methodStatic memberDecryptTripleDES Decrypt a base64 text with a key using Triple DES
Public methodStatic memberDecryptWithRSAContainer Decrypt a base64 text using the RSA key pair stored in a key container
Public methodStatic memberEncryptAES Encrypt a text with a key using AES, returned as a base64 string
Public methodStatic memberEncryptTripleDES Encrypt a text with a key using Triple DES, returned as a base64 string
Public methodStatic memberEncryptWithRSAContainer Encrypt a text using the RSA key pair stored in a key container, returned as a base64 string
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberHash Hash a text with a salt using PBKDF2 (HMACSHA256, 100000 iterations), returned as a base64 string
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStatic memberRSADecrypt Decrypt a base64 text with an RSA private key (XML format)
Public methodStatic memberRSAEncrypt Encrypt a text with an RSA public key (XML format), returned as a base64 string
Public methodStatic memberRSASignData Sign a data string with an RSA private key (XML format) using SHA256, returned as a base64 string
Public methodStatic memberRSAVerifySignature Verify the RSA signature of a data string using a public key (XML format) and SHA256
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Public fieldStatic memberAESLicenseKey AES key used to decrypt license files
Public fieldStatic memberRSALicensePublicKey RSA public key used to verify license file signatures
Top
See Also