VerityDotNet 1.0
C# library for Verity data profiling, quality control, remediation
Static Public Member Functions | List of all members
VerityDotNet.LicenseMgr Class Reference

Manages VerityDotNet license. More...

Static Public Member Functions

static string CheckLicense (string license, string id)
 Evaluates license string for being valid and expiry.
 
static string EncryptString (string strIn)
 Encrypts a string. Uses global program key retrieved from GetK method. The encrypted value will have the initialization vector prepended as a prefix.The byte size of the IV is determined by the block size of the cipher transformation type matching what was used for the encryption process.
 
static string EncryptString (string strIn, string keyIn)
 Encrypts a string. Uses global program key retrieved from GetK method. The encrypted value will have the initialization vector prepended as a prefix.The byte size of the IV is determined by the block size of the cipher transformation type matching what was used for the encryption process.
 
static string DecryptString (string strIn)
 Decrypts a string. Uses global program key retrieved from GetK method. This requires the encrypted value to have the initialization vector prepended as a prefix. The byte size of the IV is determined by the block size of the cipher transformation type matching what was used for the encryption process.
 
static string DecryptString (string strIn, string keyIn)
 Decrypts a string. Uses global program key retrieved from GetK method. This requires the encrypted value to have the initialization vector prepended as a prefix. The byte size of the IV is determined by the block size of the cipher transformation type matching what was used for the encryption process.
 

Detailed Description

Manages VerityDotNet license.

Member Function Documentation

◆ CheckLicense()

static string VerityDotNet.LicenseMgr.CheckLicense ( string license,
string id )
static

Evaluates license string for being valid and expiry.

Parameters
licensestring with license information. Encrypted.
iduser id which is key to decrypt
Returns
string of ok if license is valid or notok:reason if not valid or notok:error-msg if there is an error

◆ DecryptString() [1/2]

static string VerityDotNet.LicenseMgr.DecryptString ( string strIn)
static

Decrypts a string. Uses global program key retrieved from GetK method. This requires the encrypted value to have the initialization vector prepended as a prefix. The byte size of the IV is determined by the block size of the cipher transformation type matching what was used for the encryption process.

Parameters
strInoriginal string
Returns
decrypted string or starts with notok: if error

◆ DecryptString() [2/2]

static string VerityDotNet.LicenseMgr.DecryptString ( string strIn,
string keyIn )
static

Decrypts a string. Uses global program key retrieved from GetK method. This requires the encrypted value to have the initialization vector prepended as a prefix. The byte size of the IV is determined by the block size of the cipher transformation type matching what was used for the encryption process.

Parameters
strInoriginal string
keyIn24 byte key to use instead of global program key
Returns
decrypted string or starts with notok: if error

◆ EncryptString() [1/2]

static string VerityDotNet.LicenseMgr.EncryptString ( string strIn)
static

Encrypts a string. Uses global program key retrieved from GetK method. The encrypted value will have the initialization vector prepended as a prefix.The byte size of the IV is determined by the block size of the cipher transformation type matching what was used for the encryption process.

Parameters
strInstring to encrypt
Returns
encrypted string or starts with notok: if error

◆ EncryptString() [2/2]

static string VerityDotNet.LicenseMgr.EncryptString ( string strIn,
string keyIn )
static

Encrypts a string. Uses global program key retrieved from GetK method. The encrypted value will have the initialization vector prepended as a prefix.The byte size of the IV is determined by the block size of the cipher transformation type matching what was used for the encryption process.

Parameters
strInstring to encrypt
keyIn24 byte key to use instead of global program key
Returns
encrypted string or starts with notok: if error

The documentation for this class was generated from the following file: