Class DESCryptoServiceProvider
Provides DES methods for encrypting.
Inheritance
System.Object
DESCryptoServiceProvider
Implements
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Common
Assembly: Terrasoft.Common.dll
Syntax
[ComVisible(true)]
public class DESCryptoServiceProvider : IDisposable
Constructors
DESCryptoServiceProvider()
Initializes a new DESCryptoServiceProvider instance.
Declaration
public DESCryptoServiceProvider()
DESCryptoServiceProvider(String)
Initializes a new instance with the secret key specified.
Declaration
public DESCryptoServiceProvider(string secretKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | secretKey | The key in the base64String format. |
Methods
Close()
Declaration
[Obsolete("7.14.3 | Method is not in use and will be removed in upcoming releases")]
public void Close()
Decrypt(String)
Decrypts the specified text using the DES algorithm.
Declaration
public string Decrypt(string cypherText)
Parameters
Type | Name | Description |
---|---|---|
System.String | cypherText | The text in the base64 format to decrypt. |
Returns
Type | Description |
---|---|
System.String | The string that represents the encrypted text. |
Dispose()
Deletes, releases and resets resources. Cancels the Finalize() call for this instance.
Declaration
public void Dispose()
Dispose(Boolean)
Deletes, releases and resets resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | The |
Encrypt(String)
Encrypts specified text using the DES algorithm.
Declaration
public string Encrypt(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text for encryption. |
Returns
Type | Description |
---|---|
System.String | The string that represents the encrypted text in the base64 format. |
Implements
System.IDisposable