Show / Hide Table of Contents

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.

Inheritance
Object
ReversibleEncryptedString
Namespace: SuperOffice.ErpSync.ConnectorWS
Assembly: SuperOffice.Plugins.dll
Syntax
public static class ReversibleEncryptedString : Object

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

© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top