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.

Installation

pip install cryptools

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

Uploaded Source

Built Distribution

cryptools-0.0.5-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cryptools-0.0.5.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2

File hashes

Hashes for cryptools-0.0.5.tar.gz
Algorithm Hash digest
SHA256 425e80cfaa52a76117e158a37922c87778a731e15627b497dbcd344616a3c127
MD5 4790aa7696b2a7f3a98d522d8e46d5aa
BLAKE2b-256 b1e99400e95d27adcf1e822e4feaf45210331306407c1209da886fee892c4d28

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cryptools-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2

File hashes

Hashes for cryptools-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ef4bdf0b6332b69ec4cb1d8e06516bf8047066a9454a70dc0ca566f8fa6f7103
MD5 7ba9a4c1c9672141280dddd26eeb4e5d
BLAKE2b-256 6ed15c45d1edd69b9c9269a09ef0511580c0c93348bcfe62bb48657c97594100

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