Plain Text
Func Encrypt($UnCooked) Local $B, $S, $P Local $A1, $A2, $A3, $I, $j Local $Phrase = @ComputerName & @UserName;This is the passphase $j = 1 For $I = 1 To StringLen($Phrase) $P = $P & Asc(StringMid($Phrase, $I, 1)) Next For $I = 1 To StringLen($UnCooked) $A1 = Asc(StringMid($P, $j, 1)) $j = $j + 1 If $j > StringLen($P) Then $j = 1 $A2 = Asc(stringMid($UnCooked, $I, 1)) $A3 = BitXor($A1, $A2) $B = Hex($A3,2) If stringLen($B) < 2 Then $B = "0" + $B $S = $S & $B Next Return $S EndFunc Func Decrypt($Cooked) Local $Phrase = @ComputerName & @UserName;This is the passphase Local $B, $S, $P, $A1, $A2, $A3, $i, $j $j = 1 For $i = 1 To StringLen($Phrase) $P = $P & Asc(StringMid($Phrase, $i, 1)) Next For $i = 1 To StringLen($Cooked) Step 2 $A1 = Asc(StringMid($P, $j, 1)) $j = $j + 1 If $j > StringLen($P) Then $j = 1 $b = StringMid($Cooked, $i, 2) $A3 = Dec($b) $A2 = BitXor($A1, $A3) $S = $S & Chr($A2) Next Return $S EndFunc





