Encode-String

Encode-String([parameter(mandatory=$true)][string]$string, [parameter(mandatory=$true)][string]$keystring)
This function encodes a string.(Decode-String can decode)

Parameters
Name Necessary Summary
string Yes plain text
keystring Yes key string


Returns
a string encoded.

ex)
# encode
$r = Encode-String -string "P@ssw0rd!" -keystring "abcde";
# check the string out
$r;
# fail to decode
Decode-String -string $r -keystring "sdf";
# succeed to decode
Decode-String -string $r -keystring "abcde";

Last edited Mar 2, 2013 at 11:17 AM by Tom__S, version 2

Comments

No comments yet.