-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed encryption method from AES to OTP.
- Loading branch information
1 parent
b49136d
commit f43738e
Showing
5 changed files
with
32 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
XOR_String_Plus(String,Key) | ||
{ | ||
Key_Pos := 1 | ||
Loop, Parse, String | ||
{ | ||
String_XOR .= Chr((Asc(A_LoopField) ^ Asc(SubStr(Key,Key_Pos,1))) + 15000) | ||
Key_Pos += 1 | ||
if (Key_Pos > StrLen(Key)) | ||
Key_Pos := 1 | ||
} | ||
return String_XOR | ||
} | ||
|
||
XOR_String_Minus(String,Key) | ||
{ | ||
Key_Pos := 1 | ||
Loop, Parse, String | ||
{ | ||
String_XOR .= Chr(((Asc(A_LoopField) - 15000) ^ Asc(SubStr(Key,Key_Pos,1)))) | ||
Key_Pos += 1 | ||
if (Key_Pos > StrLen(Key)) | ||
Key_Pos := 1 | ||
} | ||
return String_XOR | ||
} |