Class ReversibleEncryptedString
This class implements a simple string encryptor/decryptor using the RijndaelManaged crypto provider. The class will encrypt and decrypt strings and base 64 encode them.
Inherited Members
Namespace: SuperOffice.ErpSync.ConnectorWS
Assembly: SuperOffice.Plugins.dll
Syntax
public static class ReversibleEncryptedString
Methods
Decrypt(string)
Decrypts the encrypted text. Uses the encryption prefix to test to see if the text is actually encrypted before it decrypts it.
Declaration
public static string Decrypt(this string encryptedText)
Parameters
| Type | Name | Description |
|---|---|---|
| string | encryptedText | Encrypted Base64 text |
Returns
| Type | Description |
|---|---|
| string | Plain text |
Encrypt(string)
Encrypts the passed String object.
Declaration
public static string Encrypt(this string text)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | string to encrypt |
Returns
| Type | Description |
|---|---|
| string | Encrypted and Base64 encoded string |