Code: Select all
#will create instance of a dll and call method
$assembly = [Reflection.Assembly]::LoadFile("C:\Path\TO\mY.dLL")
$instance = New-Object Encryption
$result = $instance.EncryptString("some secret")
Write-Host($result)
Code: Select all
public class Encryption
{
public string EncryptString(string text)
{
Code here ...
};
public string DecryptString(string cipherText)
{
code here ...
};
}
FOLLOW US
Get the latest news in Application Packaging