This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Cryha is a Python toolkit for securing information into a data base; it lets hash passwords, and encrypt/decrypt personal information. It is ready for input of Unicode characters, and the schema is returned as Unicode.

The text is stored according to this schema for a hash:

separator, the hash function identifier, separator, the salt, separator, the hash output

And this another for a cipher text:

separator, the cipher identifier, separator, the mode identifier, separator, the IV parameter, separator, the ciphertext

The idea of the schema has been taken of Linux systems that store the hashed passwords so, using a $ as separator.

The use of a schema let us to store the salt (for hash) and IV (for cipher) –which must be unique for each field–, together to the parameters that has been used to hashing/encrypting the text.

The salt and IV parameters are obtained from a random string –using the PRNG of the operating system– into a domain of 256 possible values for greater security.

[PRNG]Pseudo random number generator. In Linux is /dev/urandom.


Typical usage:

>>> import cryha


>>> hasher = cryha.Hasher()
>>> hash = hasher.create('text')
>>> hasher.valid('text', hash)
>>> hasher.valid('Text', hash)


>>> crypter = cryha.Crypter(root_keyfile='.', dir_keyfile='test_crypter')
>>> crypt = crypter.encrypt('text')
>>> crypter.decrypt(crypt) == 'text'
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
cryha-1.0.tar.gz (22.1 kB) Copy SHA256 Checksum SHA256 Source May 30, 2009

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting