Skip to main content

A string class enhancement

Project description

PyPI

unhashlib is a Python string class enhancement (a mixin).

Installation

The easiest way to install the package is via pip:

$ pip install unhashlib

Usage

from unhashlib import unhashlib

s1 =  unhashlib('the tragicall historye of romeus and juliet')

len(s1)
> 43

s1.title()
> 'The Tragicall Historye Of Romeus And Juliet'

from hashlib import sha256
print(s1.get_algorithm(sha256(s1.encode('utf-8')).hexdigest()))
> 'sha256'

print(s1.check(sha256(s1.encode('utf-8')).hexdigest()))
> True

from hashlib import md5
s2 = unhashlib(md5('python'.encode('utf-8')).hexdigest())
print(s2.crack())
> 'python'

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

unhashlib-0.1.0.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

unhashlib-0.1.0-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

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