Show / Hide Table of Contents

Class CryptographyProvider

Inheritance
object
CryptographyProvider
Implements
ICryptographyProvider
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DotNetNuke.Services.Cryptography
Assembly: DotNetNuke.dll
Syntax
[Obsolete("Deprecated in DotNetNuke 10.2.2. Use DotNetNuke.Abstractions.Security.ICryptographyProvider. Scheduled for removal in v12.0.0.")]
public abstract class CryptographyProvider : ICryptographyProvider

Constructors

CryptographyProvider()

Declaration
protected CryptographyProvider()

Properties

EncryptParameterAlgorithmName

Declaration
public virtual string EncryptParameterAlgorithmName { get; }
Property Value
Type Description
string

EncryptStringAlgorithmName

Declaration
public string EncryptStringAlgorithmName { get; }
Property Value
Type Description
string

EncryptStringHashAlgorithmName

Declaration
protected virtual string EncryptStringHashAlgorithmName { get; }
Property Value
Type Description
string

EncryptStringSymmetricAlgorithmName

Declaration
protected virtual string EncryptStringSymmetricAlgorithmName { get; }
Property Value
Type Description
string

Methods

CreateHashAlgorithm(string)

Declaration
protected static HashAlgorithm CreateHashAlgorithm(string algorithmName)
Parameters
Type Name Description
string algorithmName
Returns
Type Description
HashAlgorithm

CreateSymmetricAlgorithm(string)

Declaration
protected static SymmetricAlgorithm CreateSymmetricAlgorithm(string algorithmName)
Parameters
Type Name Description
string algorithmName
Returns
Type Description
SymmetricAlgorithm

CreateSymmetricAlgorithm(string, byte[], string)

Declaration
protected static SymmetricAlgorithm CreateSymmetricAlgorithm(string algorithmName, byte[] key, string initializationVector)
Parameters
Type Name Description
string algorithmName
byte[] key
string initializationVector
Returns
Type Description
SymmetricAlgorithm

DecryptParameter(string, string)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.2.2. Use DotNetNuke.Abstractions.Security.ICryptographyProvider. Scheduled for removal in v12.0.0.")]
public abstract string DecryptParameter(string message, string passphrase)
Parameters
Type Name Description
string message
string passphrase
Returns
Type Description
string

DecryptParameter(string, string, string)

Declaration
public string DecryptParameter(string message, string passphrase, string algorithmName)
Parameters
Type Name Description
string message
string passphrase
string algorithmName
Returns
Type Description
string

DecryptString(string, string)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.2.2. Use DotNetNuke.Abstractions.Security.ICryptographyProvider. Scheduled for removal in v12.0.0.")]
public abstract string DecryptString(string message, string passphrase)
Parameters
Type Name Description
string message
string passphrase
Returns
Type Description
string

DecryptString(string, string, string, string)

Declaration
public string DecryptString(string message, string passphrase, string algorithmName, string initializationVector)
Parameters
Type Name Description
string message
string passphrase
string algorithmName
string initializationVector
Returns
Type Description
string

EncryptParameter(string, string)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.2.2. Use DotNetNuke.Abstractions.Security.ICryptographyProvider. Scheduled for removal in v12.0.0.")]
public abstract string EncryptParameter(string message, string passphrase)
Parameters
Type Name Description
string message
string passphrase
Returns
Type Description
string

EncryptParameter(string, string, SymmetricAlgorithm)

Declaration
protected static string EncryptParameter(string message, string passphrase, SymmetricAlgorithm algorithm)
Parameters
Type Name Description
string message
string passphrase
SymmetricAlgorithm algorithm
Returns
Type Description
string

EncryptString(string, string)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.2.2. Use DotNetNuke.Abstractions.Security.ICryptographyProvider. Scheduled for removal in v12.0.0.")]
public abstract string EncryptString(string message, string passphrase)
Parameters
Type Name Description
string message
string passphrase
Returns
Type Description
string

EncryptString(string, string, HashAlgorithm, string, Func<byte[], SymmetricAlgorithm>, string)

Declaration
protected static (string EncryptedMessage, string AlgorithmName, string InitializationVector) EncryptString(string message, string passphrase, HashAlgorithm hashAlgorithm, string hashAlgorithmName, Func<byte[], SymmetricAlgorithm> createSymmetricAlgorithm, string symmetricAlgorithmName)
Parameters
Type Name Description
string message
string passphrase
HashAlgorithm hashAlgorithm
string hashAlgorithmName
Func<byte[], SymmetricAlgorithm> createSymmetricAlgorithm
string symmetricAlgorithmName
Returns
Type Description
(string EncryptedMessage, string Algorithm, string InitializationVector)

Instance()

Declaration
public static CryptographyProvider Instance()
Returns
Type Description
CryptographyProvider

Implements

ICryptographyProvider

Extension Methods

JsonExtensionsWeb.ToJson(object)
Back to top by the community, for the community... #DNNCMS