Skip to content

Rust-for-bitcoiners/2-implement-hashing-Musab1258

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Implement your own hashing algorithm

In the starter code you will see a simple xor hashing algorithm and an algorithm to find two distinct inputs which hashes to the same value. You are required to modify them using appropriate arithmetic operations.

NOTE: Refer rust docs to learn what all the arithmetic operations available. For example if you want to rotate the bits of an integer there is an associated method for each integer type. Don't have to re-invent everything.

This exercise is meant to improve your understanding of what makes SHA-256 secure.

Refer Chapter 11 of William Stallings - Cryptography and Network Security Principles and Practice, Global Edition-Pearson (2022) book. You will be required to come up with your own version of a "secure" one way hashing algorithm similar to SHA-256.

About

rust-for-bitcoiners-classroom-2-1-2-implement-hashing-rfb_2_2024_2 created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%