A string class enhancement
Project description
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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for unhashlib-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e9b7bcf6b184520bd6b2b8a7afefd4d36a1e82d59e3c8bc05fab89e6e44a29c |
|
MD5 | 192f4667901fc0daea1cba0744c8cc71 |
|
BLAKE2b-256 | 7eb544e1088b8f81a6126360048342fdf85474eaf1e90fbab488d5218037f6f0 |