Releases: cyclone-github/hashgen
v2024-11-01.1630-threaded
hashgen - the blazingly fast hash generator
$ ./hashgen_amd64.bin -m 0 -t 16 -w rockyou.txt -o /dev/null
2024/11/01 17:32:57 Starting...
2024/11/01 17:32:57 Processing file: rockyou.txt
2024/11/01 17:32:57 Hash function: 0
2024/11/01 17:32:57 CPU Threads: 16
2024/11/01 17:32:57 Finished processing 14344391 lines in 0.485 sec (29.561 M lines/sec)
Changelog since v2023-11-04.1330-threaded:
- v2024-08-24.2000-threaded;
- added mode "morsecode" which follows ITU-R M.1677-1 standard
- v2024-11-01.1630-threaded;
- added thread flag "-t" to allow user to specity CPU threads, ex:
-t 16
// fixed default to use max CPU threads - added modes: sha2-224, sha2-384, sha2-512-224, sha2-512-256, keccak-256, keccak-512
- added thread flag "-t" to allow user to specity CPU threads, ex:
Supported Functions:
Function: | Hashcat Mode: |
---|---|
base64encode | |
base64decode | |
morsecode | (ITU-R M.1677-1) |
crc32 | |
11500 | 11500 (hashcat compatible CRC32) |
crc64 | |
md4 | 900 |
md5 | 0 |
ntlm | 1000 |
plaintext | 99999 (can be used to dehex wordlist) |
ripemd-160 | 6000 |
sha1 | 100 |
sha2-224 | 1300 |
sha2-256 | 1400 |
sha2-384 | 10800 |
sha2-512 | 1700 |
sha2-512-224 | |
sha2-512-256 | |
sha3-224 | 17300 |
sha3-256 | 17400 |
sha3-384 | 17500 |
sha3-512 | 17600 |
keccak-256 | 17800 |
keccak-512 | 18000 |
c15c6bf8022e70faa9b97e57b2abd2a76ece761e77867661c6e0d3c53075ea7e hashgen_amd64.bin
8f99ac6ddc66a723dec3314c20ca57759e09d2f929c6660469de99dade766bbe hashgen_amd64-darwin
97a8235a02a49279dae9531336047a18d606b7f96e2f29b10cae6f40b7d539a0 hashgen_amd64.exe
6603530f01ffe2f9e7ba27a3c4457c03d8cece48c3eb2762b0036852430e99d7 hashgen_arm64.bin
7b9d31c00b43cac45a0bbe4c535e322645bd388cde73e06791a4cb01ce4bceaa hashgen_arm.bin
Jotti Antivirus Scan Results
https://virusscan.jotti.org/en-US/filescanjob/3m1euovbts,sxkwakgued,y7asa9bwkx,2c57qr2p4f,tk7yb1mk6t
v2023-11-04.1330-threaded
hashgen - the blazingly fast hash generator
$ ./hashgen_amd64.bin -m 0 -w rockyou.txt -o /dev/null
2023/11/02 19:10:51 Starting...
2023/11/02 19:10:51 Processing file: rockyou.txt
2023/11/02 19:10:51 Hash function: 0
2023/11/02 19:10:51 CPU Threads: 16
2023/11/02 19:10:52 Finished hashing 15053568 lines in 0.500 sec (30.123 M lines/sec)
As of the this release, hashgen (go) has a 2,519% faster md5 hashrate vs the next fastest publicly available CPU based hash generator (see benchmarks).
Since version v2023-10-30.1600
, hashgen has a top recorded hasharate of 30,228,048 md5/sec on the test rig's Ryzen 7 3700X CPU! Much faster hashrates have been seen on higher end CPU's.
Benchmarks
https://github.com/cyclone-github/hashgen-testing/tree/main/benchmarks
- Test rig specs:
- OS: Linux pve 6.2.16-14-pve (Debian 12.1)
- CPU: AMD Ryzen 7 3700X 8-Core (16 Thread) Processor @ 3600MHz
- RAM: 64gb DDR4
- Benchmarks for all 17 supported modes:
Mode | h/s |
---|---|
plaintext | 50,178,560 |
base64encode | 40,036,085 |
crc64 | 39,824,254 |
crc32 | 39,304,355 |
base64decode | 37,823,035 |
crc32 (-m 11500) | 37,077,754 |
md5 | 30,228,048 |
sha2-256 | 24,319,173 |
sha1 | 23,818,937 |
md4 | 18,935,306 |
ntlm | 14,282,323 |
ripemd-160 | 13,823,295 |
sha2-512 | 12,410,196 |
sha3-256 | 7,332,473 |
sha3-224 | 7,206,112 |
sha3-384 | 6,256,678 |
sha3-512 | 6,069,987 |
Changelog since v2023-09-28.1730-hashplain
- v2023-10-30.1600-threaded; rewrote code base for multi-threading support, some algos have not been implemented from previous version
- v2023-11-03.2200-threaded; added hashcat -m 11500 (CRC32 w/padding), re-added CRC32 / CRC64, fixed stdin
- v2023-11-04.1330-threaded; tweaked -m 11500, tweaked HEX error correction and added reporting when encountering HEX decoding errors
ab2ce4922d236d893a1b4428c092db9f1b8606a8e55762b28a54ed502f20d702 hashgen_amd64.bin
3a40a10583d98a241341232e7c5ebe2ef7f1b0387d729bc5d196a8e505aa6d59 hashgen_amd64-darwin
170d18419d6f3dd439bd9c72cedffe5eece7434704e8c89b3d1e1dec392336dc hashgen_amd64.exe
cd91c295c3495067e3ca1a039edfbf31c30bd29a4c296e27cfdb3151dad115b2 hashgen_arm64.bin
b94e14c8ceed0751741d117528630584472aba0b182d147d66085a339e71748e hashgen_armhf.bin
Jotti Antivirus Scan Results
https://virusscan.jotti.org/en-US/filescanjob/8t8i8gkejz,hw3v0b87iw,5ao4whz843,ai8fzth1vp,eroay8gxog
v2023-09-28.1730-hashplain
Changelog since v2023-08-16.1200-hashplain:
- modify -hashplain flag to be encoding-agnostic
3fb6bdd51074d66657fb60e7830f09a848e6a6f149b42245bb5df85321be87be hashgen_386.bin
d5c13dfdbb6dd211e3bd516966110313aec1d4d0dab4b9f679e8784c40a140fe hashgen_386.exe
284be4f9d964c2b6d40d08a994820f0b05ba7d99db46eaf205181683f1409e10 hashgen_amd64.bin
c0f0aa1eec6f0387abd94fef747b83e4562542465c6a8309d9d950eb2138b989 hashgen_amd64-darwin
6d800525a3a086fd34d0ac0fbc6df6aab93d065304ea2fa3d82fd3f4114abb02 hashgen_amd64.exe
1c3854e65e31154cc76f52252e4afc4622ca04a697c80dad73729033bfab9e04 hashgen_arm64.bin
06be97b80469d1a120843d094b1cb56e5518a977f4145b6824d37829647bf0a2 hashgen_armhf.bin
Jotti Antivirus Scan Results:
https://virusscan.jotti.org/en-US/filescanjob/78jtjudhi6,suv7dupqkf,0e6r348euy,wa52qdvsl4,jz7dsmx7ym,ed3tpskwql,ztwctjbosx
v2023-08-16.1200-hashplain
Features Added
- hashgen can now generate hash:plain pairs by using the -hashplain flag
$ echo "password" | ./hashgen_amd64.bin -m 0 -hashplain
...
5f4dcc3b5aa765d61d8327deb882cf99:password
- support for $HEX[] wordlist input
-
- hashgen can also be used to dehex a wordlist by using -m plaintext
$ echo '$HEX[70617373776f72643a]' | ./hashgen -m plaintext
...
password:
- bcrypt -cost flag, ex: -m bcrypt -cost 10
$ echo "password" | ./hashgen -m 3200 -cost 10
...
$2a$10$qwN.JrEnBddR9DI12Dw3peuQRbaKaX/BdpROFiHvCFVV.6An4Aq.m
Misc
- added error correction to 'fix' improperly formatted $HEX[] lines
a8e9cdc87ba293fe60ff64b34a3e923e1dc724c74e076a8f831546da1708e74b hashgen_386.bin
17315660a774a35c2b3fa14cb5283124af55fc915ac1d1f86c1705490e3cc542 hashgen_arm64.bin
3ae187dc69a42ae21e2b926bc223bd8b964555a70a257bde348504bd5e17d5bb hashgen_armhf.bin
1fd68e83359fa0ff3e4c802b7e0315d40884657019586b7d9eb97af02639fdd1 hashgen.bin
a2b5440a53818dd78eae05b93e030be455d0a3a34ee74827273881f1530e7f79 hashgen-darwin
eeeb81f2f7345aeb44d6e60c64c72b383509fb7f9db6fddb6caed0ee4213cd4a hashgen.exe
Jotti Antivirus Scan Results:
https://virusscan.jotti.org/en-US/filescanjob/xzrwfnq11i,pq7cwpcx27,ym2nd6uic2,ktdpc23crk,9vic9uq7nz,k3p1ly8d9t
v2023-08-15.1900-hashplain
Performance Updates for hashgen
- optimized code
- all hashing functions have been optimized for better performance
- hashing performance increased between 5-18% (depending on hash algo)
Features Added
- hashgen can now generate hash:plain pairs by using the -hashplain flag
- support for $HEX[] wordlist input
-
- hashgen can also be used to dehex a wordlist by using -m plaintext
- bcrypt -cost flag, ex: -m bcrypt -cost 10
Tweaks
- buffers
- added small buffers for argon & bcrypt since they are very slow algo's
Bug Fixes
- stdout / stderr outputs
Misc
- updated -help menu and code comments
8fc4a983ba065ffcd62df2b6990709a148dc5b3a0af0c7c9252ec63231eb78fa hashgen.bin
50a46f4cb61af7ff07fe124c047088685fbca45d28aa1e8b1fd48ecbaa031ca3 hashgen-darwin
459ff36ea4d8539e8f27b6d7f1dc5a1bc5d182312017e00790a66e64371519e7 hashgen.exe
v2023-03-15.0900
- Added "-o stdout" option
- Tweaked sha2 mode flags: ex: -m "sha2-256", "sha2_256", "sha2256", "sha256", "1400"
- Fixed "lines/sec" to show "M lines/sec"
- Tested on linux & windows (can also be compiled for mac)
v2022-12-24.1800-optimize
- Optimized code which gave a nice performance increase to most functions
-- hashgen is now the fastest CPU based md5 hash generator I've tested - Tweaked buffer sizes to shave off a few ms
- hashgen now supports 26 functions
- hashgen can be used with algo name or hashcat mode flags: ex: "-m sha1" or "-m 100"
c8a21b2f986aa489c5adab5d9522a0808b5c6560f50dc0149d8c0d4bbbf5eefd hashgen-x64-darwin
074142f35be597338301b08d5e1efd52c12f4561d67d649b7443dc983f66bda7 hashgen-x64.exe
27e81aba0711175ad22565536f904a9f7766a2ff9091b084090ce2d3cdf1f34f hashgen-x64-linux
v2022-12-20.1430-goroutine
- Code rewrite using goroutines & read / write buffers for better performance.
- hashgen currently supports 25 functions
- hashgen can be used with algo name or hashcat mode flags: ex: "-m sha1" or "-m 100"
Benchmark:
25d063b
b4ba00ed09af1dc3e4eead0f3b23a00ff3ba61e542b70eb13fdc2a4502c06654 hashgen-x64-darwin
b528ee0cf1ab055c955c721b0595095dac1d956addff4e2c47edaceaeac1df49 hashgen-x64.exe
cfbcffc310763622e3b09a1e497e59750159830c32c8954fb1e62940915682b3 hashgen-x64-linux
v2022-12-20.1200-ntlm
Currently Supported functions:
base64decode
base64encode
bcrypt
crc32
md4
md5
ntlm <--- added (fixed)
sha1
sha256
sha512
19855cbabcc403767617bb98d66bc35c17925844e635d2cbc80153c74ec5aea3 hashgen-x64-darwin
ed5b18a57a47e64d237cc86a74517f70d7a12deb2d65cec114cb24551f0e6d61 hashgen-x64.exe
4dca01e168421b8dc38e0a3fd3c5e9a6f804f5dc695926eec50e5f97d2cde471 hashgen-x64-linux
v2022-12-15.2030
Initial release.
Supported functions:
base64decode
base64encode
bcrypt
crc32
md4
md5
sha1
sha256
sha512
7ec9b2a9e3c55f31cf77c30673501b2abb166e24a6163ee720f65a080887a92d hashgen-x64-darwin
b66ca6cda2068e2d0598682cc2e03fa1fdb42ccd707be400a56a41b70a188fc2 hashgen-x64.exe
c112318c3decbe9b8b4b910aea4cb397f3a9c56128d121c11337b0ba7671d1ca hashgen-x64-linux