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


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for HashExtender, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size HashExtender-1.0.0.tar.gz (1.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page