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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file unhashlib-0.1.0.tar.gz.

File metadata

  • Download URL: unhashlib-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.8

File hashes

Hashes for unhashlib-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f071e4d745978854364d6f12a95a93989c4797150bc440b56fd8e53611bc6d70
MD5 05ba3926d9e40670f245baae7a2d5677
BLAKE2b-256 09aff107201f0b4757aae6b1b44114393620d7483f6ded2875779abef92da2bb

See more details on using hashes here.

File details

Details for the file unhashlib-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: unhashlib-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.8

File hashes

Hashes for unhashlib-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e9b7bcf6b184520bd6b2b8a7afefd4d36a1e82d59e3c8bc05fab89e6e44a29c
MD5 192f4667901fc0daea1cba0744c8cc71
BLAKE2b-256 7eb544e1088b8f81a6126360048342fdf85474eaf1e90fbab488d5218037f6f0

See more details on using hashes here.

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