Skip to content
/ shatool Public

A tool to perform common attacks (e.g. length extension) and operations relating to the SHA256 hashing algorithm

License

Notifications You must be signed in to change notification settings

J-0-3/shatool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shatool

A tool to perform common attacks (e.g. length extension) and operations relating to the SHA256 hashing algorithm

Currently implemented: Hash calculation, length extension attacks, dictionary attacks

Hash calculation

Simply calculate the SHA256 digest of some input data and output it in the desired format:

Screenshot 2023-05-17 231907

Length Extension Attack

Perform a length extension attack given the hash of some unknown data, the length of the data, and some additional data to append.

Given H(m) and some data d, calculate H(m|p|d) where p is the original SHA256 padding added to m. Screenshot 2023-05-17 233046

Demo

Screenshot 2023-05-17 232912 The hash of the unknown data + the original sha256 padding + the new message was successfully calculated (as it matches the expected value at the bottom).

About

A tool to perform common attacks (e.g. length extension) and operations relating to the SHA256 hashing algorithm

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages