Manages VerityDotNet license.
More...
|
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.
|
|
Manages VerityDotNet license.
◆ CheckLicense()
static string VerityDotNet.LicenseMgr.CheckLicense |
( |
string | license, |
|
|
string | id ) |
|
static |
Evaluates license string for being valid and expiry.
- Parameters
-
license | string with license information. Encrypted. |
id | user 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
-
- 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
-
strIn | original string |
keyIn | 24 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
-
- 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
-
strIn | string to encrypt |
keyIn | 24 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:
- D:/CodeDevelopment/VS/VerityDotNet/LicenseMgr.cs