Table of Contents

Class EncryptionHelper

Namespace
CMS.Helpers
Assembly
CMS.Helpers.dll

Provides validation RSA singed license key.

public static class EncryptionHelper
Inheritance
object
EncryptionHelper

Methods

DecryptData(string)

Decrypts data encrypted by EncryptData(string) method. The input string is returned as is, if it is null or empty string or it was not encrypted using EncryptData(string) method.

public static string DecryptData(string encryptedString)

Parameters

encryptedString string

Encrypted data as a base 64 string.

Returns

string

EncryptData(string)

Encrypts data using symmetric cryptography. Data can by decrypted by calling DecryptData(string) method. If null or empty string is on input, method returns it. The encrypted data is returned as a base 64 string.

[Obsolete("Use custom implementation instead.")]
public static string EncryptData(string plainString)

Parameters

plainString string

Data to encrypt.

Returns

string

VerifyVersionRSA(string)

Verifies RSA signed key which is used for getting Kentico version.

public static bool VerifyVersionRSA(string inputKey)

Parameters

inputKey string

License key

Returns

bool