Last active
March 2, 2017 00:14
-
-
Save Guevara-chan/01b40bd68f22c7aa7bb36e8f67b71119 to your computer and use it in GitHub Desktop.
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
Macro TranslateChar(Char) | |
Select Char ; Symbol scanner. | |
Case ':' To '@' : Char - ':' + 'A' | |
Case '[' To '`' : Char - '[' + 'a' | |
Case '.' To 'z' ; NOOP | |
Default : Char = '.' | |
EndSelect | |
EndMacro | |
Procedure.s Tripcode(Plain.s) | |
Define Salt.s{2}, *Char.Character = @Salt, *Char2.Character = @Salt + SizeOf(Character) | |
Define *Reader.Character = @Plain + SizeOf(Character) | |
Select Len(Plain) | |
Case 0, 1 : *Char\C = 'H' : *Char2\C = '.' ; Empty replacer. | |
Case 2 : *Char\C = *Reader\C : *Char2\C = '.' ; Demi replacer. | |
Default : *Char\C = *Reader\C : *Reader + SizeOf(Character) : *Char2\C = *Reader\C | |
EndSelect : TranslateChar(*Char\C) : TranslateChar(*Char2\C) ; Symbol replacer. | |
ProcedureReturn Right(DESFingerprint(Plain, Salt), 10) | |
EndProcedure |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment