The encryption algorithm is using AES standard with 256 bytes SALT for the process.

User can encrypt any string using this plugin as long as there is an media served as a private key / passphrase.

Class Crypto

Method:

public static string EncryptStringAES(string plainText, string sharedSecret)

public static string DecryptStringAES(string cipherText, string sharedSecret)

Example:

c#:
byte[] secret = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0};

string passphrase = System.Text.Encoding.Default.GetString(secret );
PSEdition.Helper.cSharp.Crypto.DecryptStringAES("abcd1234", passphrase);


For the snippet of Powershell administrator:
System.Reflection.Assembly::LoadWithPartialName("PSEdition")

$passphrase= get-content "Your File of string"

PSEdition.Helper.cSharp.Crypto::EncryptStringAES("abcd1234", $passphrase)

Last edited Jan 27, 2016 at 6:28 AM by z9ekaMen1, version 3