Sage Modeling and Simulation Library

Crypto Members

The Crypto type exposes the following members.

Methods


  Name Description
Public method Static member ComputeHash
Generates a hash for the given plain text value and returns a base64-encoded result. Before the hash is computed, a random salt is generated and appended to the plain text. This salt is stored at the end of the hash value, so it can be used later for hash verification.
Public method Static member DecryptString
Triple-DES decrypts the cipher text using the provided key.
Public method Static member EncryptString
Triple-DES encrypts the plain text using the provided key.
Public method Equals(System.Object)
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method Static member GenerateFullKeyPair()()()()
Generates a 1024 bit RSA key pair string.
Public method Static member GenerateFullKeyPair(Int32)
Generates a RSA key pair string.
Public method Static member GenerateSignature
Generates the signature.
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method Static member GetKeyBlob
Gets the key Blob.
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method Static member PublicKeyOnly
Accepts a full keyPair string (as generated by the GenerateKeyPair API) and returns a keyPair string without the private key.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)
Public method Static member ValidateSignature
Validates the signature.
Public method Static member VerifyHash
Compares a hash of the specified plain text value to a given hash value. Plain text is hashed with the same salt value as the original hash.