Skip to main content

easy-to-use implementations for ciphers, hashes, prngs, and attacks

Project description

cryptools

Python crypto tools designed for ease of use and stability instead of guaranteed performance or cryptographic security.

Usage

Hash

from cryptools import *
sha1('adb')  # 'fa1143dea12bffbbc1aa99d5da2ec811d63b5127'

PRNG

from cryptools import *
# Using Mersenne Twister 19937 and default seed 5489
rand() # 0xD091BB5C
rand() # 0x22AE9EF6
seed(251)
rand() # 0xA33A7D59
rand() # 0x8631FB6B

Cipher

from cryptools import *
aes_ecb_encrypt('adb', 'cryptoolstestkey') # '4547e8e48086047f0e704728f86f1273'
aes_ecb_decrypt(b'EG\xe8\xe4\x80\x86\x04\x7f\x0epG(\xf8o\x12s', 'cryptoolstestkey') # b'adb'

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

cryptools-0.0.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

cryptools-0.0.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file cryptools-0.0.1.tar.gz.

File metadata

  • Download URL: cryptools-0.0.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for cryptools-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e2fd980075b759cc7fa5b53456f13743f1d5b61ef7fc15db1cbe1647ff1dcfe2
MD5 a3e11479431da96cedb7dc9d3161dbe8
BLAKE2b-256 45a71aeda4f4a39e0c872a2e7736c5c348e65efc57116bdd74975b108226d8ee

See more details on using hashes here.

File details

Details for the file cryptools-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: cryptools-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for cryptools-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 474b125393c2676f9c42e05958c09a4ea70cb70853819f90d786bffb111167c3
MD5 e3a76ec80d06ec8ce1b0c73f31957d7a
BLAKE2b-256 adfb879b0ca11097ad6a4f605e52f93c50052a9f317aebbd63282bd82c0b99a3

See more details on using hashes here.

Supported by

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