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")
# Return: Tt1fb89EdWohEDa
crack.b58decode("Tt1fb89EdWohEDa")
# Return: leesoar.com
Base64
import crack
crack.b64encode(b"leesoar.com", b64_map="9240gsB6PftGXnlQTw_pdvz7EekDmuAWCVZ5UF-MSK1IHOchoaxqYyj8Jb3LrNiR")
# Return: DBvFmjNVmZb5DjY=
crack.b64decode("DBvFmjNVmZb5DjY=", b64_map="9240gsB6PftGXnlQTw_pdvz7EekDmuAWCVZ5UF-MSK1IHOchoaxqYyj8Jb3LrNiR")
# Return: b'leesoar.com'
Decimal to other
import crack
# default base is 58
crack.dec_to_other(9527)
# Return: [2, 48, 15]
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") # This is the correct result.
Array's partition
import crack
[print(x, end=", ") for x in crack.partition("gmapi.cn", size=3)]
# Print: gma, pi., cn,
[print(x) for x in crack.partition(["g", "m", "a", "p", "i", ".", "c", "n"], size=3)]
# Print: ['g', 'm', 'a'], ['p', 'i', '.'], ['c', 'n'],
Unsigned shift
import crack
crack.unsigned_right_shift(-2048, 1)
# Output: 2147482624
# It likes JavaScript ">>>"
...
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)
# Output: 984a0877240ec62afaf6bbab175ab985 [Random]
...
Metadata
Release files for crack 0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| crack-0.7.tar.gz | 7.4 kB | Without provenance | Details for crack-0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| crack-0.7-py3-none-any.whl | Python 3 | none | any | Details for crack-0.7-py3-none-any.whl |
Total release size: 14.9 kB
Release files / crack-0.7.tar.gz
| Download URL | crack-0.7.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd0e5b6282389db6b0f707671eaec5325dda9570492ea729607e5d84cb592172
|
|
BLAKE2b-256 checksum How to use checksums |
5e92c8bbd0f9efc4bf27fb144142344a672bda9baeefea8534bbd6205b43c8eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.0.2rc1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.6
|
Release files / crack-0.7-py3-none-any.whl
| Download URL | crack-0.7-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bb36b0c6279193d8757771a07c2b9b7636175de238cc46c74ce3656f00d251c3
|
|
BLAKE2b-256 checksum How to use checksums |
0eded74c2036fe81197252812d26a1b1d9b6788fe0416f2cfcdafb28533037a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.0.2rc1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.6
|
Security for crack 0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.