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.2.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: cryptools-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 1f4ef0796d924c3436b4db1bf51c5364279d587ee99a8b2868e1e91e353c7740
MD5 2297cfd61505f8033767eb0f66f1c569
BLAKE2b-256 99a4e525e81f3cb334e91e8a056461d7b4c2407caa8b9ae3865e1e64ac49c1e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cryptools-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a89ade3b2b534ff9bd2db33b38fcb7554e88e2c62881548e88df39d0e144a2d4
MD5 647497e230cac55c32971352940d3729
BLAKE2b-256 addff987a3ccf2fcab9f34634d3a2600bcd502545a3a907ce23fb69923801434

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