Show / Hide Table of Contents

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 true value for releasing both controlled and uncontrolled resources; the false value is for releasing uncontrolled resources only.

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

Extension Methods

ReflectionUtilities.GetPropertyValue(Object, String)
ReflectionUtilities.GetPropertyDefValue(Object, String, Object)
ReflectionUtilities.TryGetPropertyValue(Object, String, out Object)
ReflectionUtilities.HasProperty(Object, String)
ReflectionUtilities.GetPropertyValue(Object, String, BindingFlags)
ReflectionUtilities.GetPropertyValueByPath(Object, String)
ReflectionUtilities.SetPropertyValue(Object, String, Object)
ReflectionUtilities.TrySetPropertyValue(Object, String, Object)
ValidateUtilities.CheckArgumentNull(Object, String)
ValidateUtilities.CheckDependencyNull(Object, String)
ValidateUtilities.EnsureDependencyNotNull<T>(T, String)
MetaDataTestUtils.MetaPropertiesShouldNotHaveDefValue<TInstance>(TInstance)
MetaDataTestUtils.MetaPropertiesShouldNotHaveDefValue<TInstance>(TInstance, Boolean)
NSubstituteExtension.Protected(Object, String, Object[])
NSubstituteExtension.Protected(Object, String, Boolean, Object[])
NSubstituteExtension.ProtectedGeneric<T>(Object, String, Object[])
NSubstituteExtension.ProtectedGeneric<T>(Object, String, Boolean, Object[])
NSubstituteExtension.ProtectedProperty(Object, String)
NSubstituteExtension.MatchInstance<T>(T)
SubstituteUtilities.GetIsSubstituteObject(Object)
SubstituteUtilities.Instead<TInstance, TValue>(TInstance, Func<TInstance, TValue>)
Back to top Generated by DocFX