Skip to main content

Module implements hash length extension attack against MD5 algorithm

Project description

Description

Installing

$ pip install HashExtender

Usage

>>> import hashext
>>> print hashext.md5(data = '123', sign = '109889f941630d269546335f728f3558', length = 5, append = 'test')
('123\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
\x00\x00\x00@\x00\x00\x00\x00\x00\x00\x00test', 'e5f78513e536615a6f5164ccff96d4d9')
  • data - your original signed message

  • sign - message signature, MD5(secret + msg)

  • length - probable length of secret string

  • append - data to append to new string

About

Wikipedia

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

HashExtender-1.0.0.tar.gz (1.6 kB view details)

Uploaded Source

File details

Details for the file HashExtender-1.0.0.tar.gz.

File metadata

  • Download URL: HashExtender-1.0.0.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for HashExtender-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6ebfbabc58b519c93a4119fed03ccf6ba2632a6e9949dc874a776ae0bbc2cda2
MD5 7309a0a3016643a402301f0c08f764a6
BLAKE2b-256 7493666d0621e1e39df002e5616dcd29639528cf4abf5b503a8237b9f1f97fb0

See more details on using hashes here.

Supported by

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