Class EncryptionHelper
Provides validation RSA singed license key.
public static class EncryptionHelper
- Inheritance
-
objectEncryptionHelper
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
stringEncrypted 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
stringData 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
stringLicense key
Returns
- bool