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
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
HashExtender-1.0.0.tar.gz
(1.6 kB
view hashes)