mirror of
https://git.ugnet.gay/CrossTalk/azul.git
synced 2026-11-25 08:40:05 +00:00
0.6 final
This commit is contained in:
1 parent
7c0581eb97
commit
b89e1932bb
160 files changed
+20534
-4664
No files matched your search
@@ -0,0 +1,13 @@
|
||||
from itertools import cycle
|
||||
|
||||
ROAST_STRING = b'Tic/Toc'
|
||||
|
||||
def roast(password: bytes) -> bytes:
|
||||
chars = cycle(ROAST_STRING)
|
||||
return bytes(byte ^ next(chars) for byte in password)
|
||||
|
||||
def unroast_hex(roasted: bytes) -> bytes:
|
||||
text = roasted.decode('ascii', 'replace')
|
||||
if text.startswith('0x'):
|
||||
text = text[2:]
|
||||
return roast(bytes.fromhex(text))
|
||||
Reference in new issue
Block a user