Crack
Crack tools all here!
Currently support custom aes, base58, base64, secrets, seal box, unsigned shift and font decode, other will be coming soon.
Thanks for use.
How to use
Base58
import crack
crack.b58encode("leesoar.com")
crack.b58decode("Tt1fb89EdWohEDa")
Base64
import crack
crack.b64encode(b"leesoar.com", b64_map="9240gsB6PftGXnlQTw_pdvz7EekDmuAWCVZ5UF-MSK1IHOchoaxqYyj8Jb3LrNiR")
crack.b64decode("DBvFmjNVmZb5DjY=", b64_map="9240gsB6PftGXnlQTw_pdvz7EekDmuAWCVZ5UF-MSK1IHOchoaxqYyj8Jb3LrNiR")
Decimal to other
import crack
crack.dec_to_other(9527)
Font Decode
Thanks fonttools.
If a site font was displayed wrong, it can be corrected like this:
from crack import Font
font = Font("font_file.ttf")
font.mapping([1, 3, 2, 4, 0, 5, 7, 8, 6, 9], start=2)
font.load(Font("https://nskol.com/font/default.ttf"))
font.decode("\ue627\ueb1c\uefc6")
Array's partition
import crack
[print(x, end=", ") for x in crack.partition("gmapi.cn", size=3)]
[print(x) for x in crack.partition(["g", "m", "a", "p", "i", ".", "c", "n"], size=3)]
Unsigned shift
import crack
crack.unsigned_right_shift(-2048, 1)
...
AES
- If you use 'from crack import Aes', it will automatically fix the bug of importing crypto error.
from crack import Aes
aes = Aes(key="xxxxxxxxx", iv="xxxxxxxxx")
aes.encrypt_hex(b"xxxxxxxxxxx")
aes.encrypt_byte(b"xxxxxxxxxxx")
...
Secrets
import crack
crack.token_hex(16)
...