StringEncrypter
Namespace: Babel.Licensing Assembly: Babel.Licensing.dll
A string encryptor class.
Inheritance
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Methods
Decrypt(string, string)
A string extension method that decrypts.
Parameters
Returns
Name | Description |
---|---|
The decrypted string. |
Exceptions
Name | Description |
---|---|
Thrown when one or more required arguments are |
Decrypt(string, string, IEncoding)
A string extension method that decrypts strings.
Parameters
Name | Description |
---|---|
| The string to act on. |
| The password used to encrypt. |
| The encrypted string encoding. |
Returns
Name | Description |
---|---|
The decrypted string. |
Exceptions
Name | Description |
---|---|
Thrown when one or more required arguments are null. |
Decrypt(string, byte[])
A string extension method that decrypts.
Parameters
Returns
Name | Description |
---|---|
The decrypted string. |
Exceptions
Name | Description |
---|---|
Thrown when one or more required arguments are |
DecryptFromBytes(byte[], string)
A string extension method that decrypts.
Parameters
Returns
Name | Description |
---|---|
The decrypted string. |
Exceptions
Name | Description |
---|---|
Thrown when one or more required arguments are |
Encrypt(string, string)
A string extension method that encrypts.
Parameters
Returns
Name | Description |
---|---|
The encrypted string. |
Exceptions
Name | Description |
---|---|
Thrown when one or more required arguments are |
Encrypt(string, string, IEncoding)
A string extension method that encrypts strings.
Parameters
Name | Description |
---|---|
| The string to act on. |
| The password used to encrypt. |
| The encrypted string encoding. |
Returns
Name | Description |
---|---|
The encrypted string. |
Exceptions
Name | Description |
---|---|
Thrown when one or more required arguments are null. |
Encrypt(string, byte[])
A string extension method that encrypts.
Parameters
Returns
Name | Description |
---|---|
The encrypted string. |
Exceptions
Name | Description |
---|---|
Thrown when one or more required arguments are |
EncryptToBytes(string, string)
A string extension method that encrypts strings.
Parameters
Returns
Name | Description |
---|---|
byte[] | The encrypted string byte array. |
Exceptions
Name | Description |
---|---|
Thrown when one or more required arguments are null. |
Last updated