LicenseSpring .Net SDK 8.1.0
Easily add Software Licensing to your application
Loading...
Searching...
No Matches
LicenseSpring.ICryptoProvider Interface Reference

CryptoProvider interface. More...

Inheritance diagram for LicenseSpring.ICryptoProvider:
LicenseSpring.CryptoProvider LicenseSpring.CryptoProviderV2

Public Member Functions

string Decrypt (string inputString)
 Decrypt given string.
 
string Encrypt (string inputString)
 Encrypt given string.
 

Properties

string Key [get, set]
 Cryptographic key.
 
string Salt [get, set]
 Cryptographic salt.
 

Detailed Description

CryptoProvider interface.

You can implement this interface to provide your custom approach for local license encryption. Before implementing your CryptoProvider class consider just changing Salt or Key of default provided.

Member Function Documentation

◆ Decrypt()

string LicenseSpring.ICryptoProvider.Decrypt ( string  inputString)

Decrypt given string.

Parameters
inputStringThe encrypted payload previously produced by Encrypt(string), supplied back byte-for-byte.
Returns
Decrypted string

Implemented in LicenseSpring.CryptoProvider, and LicenseSpring.CryptoProviderV2.

◆ Encrypt()

string LicenseSpring.ICryptoProvider.Encrypt ( string  inputString)

Encrypt given string.

Parameters
inputStringString to encrypt
Returns
The encrypted payload. Depending on the provider this may be an opaque binary byte container rather than printable text; if you persist it, preserve it byte-for-byte (see ILicenseStorage).

Implemented in LicenseSpring.CryptoProviderV2, and LicenseSpring.CryptoProvider.

Property Documentation

◆ Key

string LicenseSpring.ICryptoProvider.Key
getset

Cryptographic key.

Implemented in LicenseSpring.CryptoProvider, and LicenseSpring.CryptoProviderV2.

◆ Salt

string LicenseSpring.ICryptoProvider.Salt
getset

Cryptographic salt.

Implemented in LicenseSpring.CryptoProvider, and LicenseSpring.CryptoProviderV2.


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