Fractus
Fractus is a cryptographic attack library written in rust. It is also available through python
Run
Rust
cargo add fractus
use sha2_256;
let m = b"abc";
let h = compute;
let e = b"cde";
let mut c = m.to_vec;
c.extend
.extend;
let e = extend;
assert_eq!;
Python
= b+b
=
= b
assert ==
Develop
Rust
cargo test
Python
in a python virtual environment:
maturin build --features python
Features
Length Extension Attack
- MD4
- MD5
- SHA0
- SHA1
- SHA2_256
- SHA2_512
- Ripemd128
- Ripemd160
- Ripemd256
- Ripemd320
- Whirlpool