@@ -78,16 +78,18 @@ v1.1.2; 2025-04-08
7878v1.1.3; 2025-06-30
7979 added mode "hex" for $HEX[] formatted output
8080 added alias "dehex" to "plaintext" mode
81- improved "plaintext/dehex" logic to decode both $HEX[] and raw base-16 input
81+ improved "plaintext/dehex" logic to decode both $HEX[] --> and raw base-16 input <-- (removed decoding raw base-16, see changes for v1.1.5)
8282v1.1.4; 2025-08-23
8383 added modes: keccak-224, keccak-384, blake2b-256, blake2b-384, blake2b-512, blake2c-256
8484 added benchmark flag, -b (to benchmark current mode, disables output)
8585 compiled with Go v1.25.0 which gives a small performance boost to multiple algos
8686 added notes concerning some NTLM hashes not being crackable with certain hash cracking tools due to encoding gremlins
87+ v1.1.5-dev; 2025-09-09.1500
88+ addressed raw base-16 issue https://github.com/cyclone-github/hashgen/issues/8
8789*/
8890
8991func versionFunc () {
90- fmt .Fprintln (os .Stderr , "Cyclone hash generator v1.1.4 ; 2025-08-23 \n https://github.com/cyclone-github/hashgen" )
92+ fmt .Fprintln (os .Stderr , "Cyclone hash generator v1.1.5-dev ; 2025-09-09.1500 \n https://github.com/cyclone-github/hashgen" )
9193}
9294
9395// help function
@@ -117,8 +119,8 @@ func helpFunc() {
117119 "crc32\n " +
118120 "11500\t \t (hashcat compatible CRC32)\n " +
119121 "crc64\n " +
120- "hex\t \t ($HEX[] format )\n " +
121- "dehex/plaintext\t 99999\t (dehex wordlist )\n " +
122+ "hex\t \t (encode to $HEX[])\n " +
123+ "dehex/plaintext\t 99999\t (decode $HEX[] )\n " +
122124 "keccak-224\t 17700\n " +
123125 "keccak-256\t 17800\n " +
124126 "keccak-384\t 17900\n " +
@@ -502,13 +504,11 @@ func hashBytes(hashFunc string, data []byte, cost int) string {
502504 }
503505 return string (decodedBytes )
504506
505- // plaintext, dehex, -m 99999
507+ // plaintext, dehex, -m 99999
506508 case "plaintext" , "plain" , "99999" , "dehex" , "unhex" :
507- // attempt hex decode directly
508- if decoded , err := hex .DecodeString (string (data )); err == nil {
509- return string (decoded )
510- }
511- return string (data ) // convert byte slice to string
509+ // passthrough & run checkForHex
510+ return string (data )
511+
512512 default :
513513 log .Printf ("--> Invalid hash function: %s <--\n " , hashFunc )
514514 helpFunc ()
0 commit comments