Skip to main content

To help you for les brutes force

Project description

Cryptide

This Python package gonna help you in CTF of cryptography

Installation

$ pip install cryptide

All function are here :

ASCII

  • get_ascii_readable_stat
  • get_unascii_stat
  • unascii_stoper
  • ascii_readable_stoper

Bytes

  • bytes_representation

IC

Index of coincidence
  • compute_ic
text = """
Demain, dès l'aube, à l'heure où blanchit la campagne,
Je partirai. Vois-tu, je sais que tu m'attends.
J'irai par la forêt, j'irai par la montagne.
Je ne puis demeurer loin de toi plus longtemps.
Je marcherai les yeux fixés sur mes pensées,
Sans rien voir au dehors, sans entendre aucun bruit,
Seul, inconnu, le dos courbé, les mains croisées,
Triste, et le jour pour moi sera comme la nuit.
Je ne regarderai ni l'or du soir qui tombe,
Ni les voiles au loin descendant vers Harfleur,
Et quand j'arriverai, je mettrai sur ta tombe
Un bouquet de houx vert et de bruyère en fleur.
Victor Hugo - Les Contemplations
"""
compute_ic(text, beautifier=True)
# 0.06934214326978624

The option beautifier gonna asciifier your input data. for exemple this text will be reformat in :

text = """
demain, des l'aube, a l'heure ou blanchit la campagne,
je partirai. vois-tu, je sais que tu m'attends.
j'irai par la foret, j'irai par la montagne.
je ne puis demeurer loin de toi plus longtemps.
je marcherai les yeux fixes sur mes pensees,
sans rien voir au dehors, sans entendre aucun bruit,
seul, inconnu, le dos courbe, les mains croisees,
triste, et le jour pour moi sera comme la nuit.
je ne regarderai ni l'or du soir qui tombe,
ni les voiles au loin descendant vers harfleur,
et quand j'arriverai, je mettrai sur ta tombe
un bouquet de houx vert et de bruyere en fleur.
"""
  • checker_ic
    Use it to stop your BF when the data can be the good data
checker_ic(0.038)
# None

checker_ic(0.078)
# True
  • what_ic This function will find the language of the index of coincidence give in input
what_ic(0.08)
# DUTCH
  • checker_and_compute_ic
  • list_aggregation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cryptide-0.0.4.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cryptide-0.0.4-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file cryptide-0.0.4.tar.gz.

File metadata

  • Download URL: cryptide-0.0.4.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.0

File hashes

Hashes for cryptide-0.0.4.tar.gz
Algorithm Hash digest
SHA256 dd272e901d42f88511e70ab5162a83fb2c984a7f763307e1df9af998f4fb2620
MD5 ee1172c652b6052bcdb7d81c7947e996
BLAKE2b-256 a5999505406914962732d640e877a62ef2b8ec4772cf4e8a86ce0b79285e434d

See more details on using hashes here.

File details

Details for the file cryptide-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: cryptide-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.0

File hashes

Hashes for cryptide-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8567df4f64415ecd1baf8cf77c83ff71329d96d3c3e21728fb8c6d07ee18cf88
MD5 f445fb2769ef8ca56ad848cc0778d1f8
BLAKE2b-256 1a54d881fce832d942d3c965473cc45dbe230109c2e4fa6ad80d2b585d28c672

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page