HC and Blowfish Advanced CS Help
#1
All,

I am looking for help with getting HC to run against some keys and salts extracted from .bfa files encrypted by Blowfish Advanced CS 2.57 (on sourceforge).

I read through their manual and found the following excerpt:

"Let our password be "helloworld". We want to create a key of 128 bits (16 bytes). The SHA-1 allows us to input as much data bytes as we want to, and puts out a hash of 160 bits (20 bytes). A hash (also called digest) is the same like a CRC32 checksum, but secure for encryption purposes.

To resize the 20 bytes of the hash to the required 16 bytes for the key we take the first 16 bytes of the hash and XOR the rest of 4 bytes over the beginning of these 16 bytes. By this we don't ignore any part of the hash:

password:                "helloworld"
                              |
                            SHA-1
                              |
        a3d4ff09e22710946702eab2cc382596a8e3197322
        a3d4ff09e22710946702eab2cc382596a8
        ||||||||
    XOR e3197322
        ||||||||
key:    40cd8c2be22710946702eab2cc382596a8

In the second example we assume that our password is still "helloworld" but we need a key for Blowfish which has the required length of 56 bytes.

As already mentioned SHA-1 only returns 20 bytes. So we have to create 36 additional bytes from the password by the following way: we hash the password with SHA-1 and get 20 bytes. Then we add those 20 bytes to the original password and hash the modified password again. The result is a new hash which means 20 new bytes for our key. Due to the modified password this new hash is completely different from the first one. Now we append this second hash to the modified password again and rehash it to get the last 20 bytes. Of course now we have 4 bytes too much, so we XOR them over the first hash as we did in the first example. Now we have the needed 56 bytes for the Blowfish encryption algorithm.

Please remember that your password is always combined with 11 bytes of salt."


Any help is appreciated.

<-Romeo3442->
Reply


Messages In This Thread
HC and Blowfish Advanced CS Help - by Romeo3442 - 05-07-2020, 06:07 PM
RE: HC and Blowfish Advanced CS Help - by womble - 05-08-2020, 03:43 AM
RE: HC and Blowfish Advanced CS Help - by philsmd - 05-10-2020, 07:34 AM
RE: HC and Blowfish Advanced CS Help - by womble - 05-10-2020, 03:45 PM
RE: HC and Blowfish Advanced CS Help - by womble - 05-15-2020, 05:27 AM
RE: HC and Blowfish Advanced CS Help - by 0x4n6 - 05-15-2020, 07:05 AM
RE: HC and Blowfish Advanced CS Help - by womble - 05-15-2020, 07:46 AM
RE: HC and Blowfish Advanced CS Help - by philsmd - 05-15-2020, 08:39 AM
RE: HC and Blowfish Advanced CS Help - by womble - 05-15-2020, 11:38 AM
RE: HC and Blowfish Advanced CS Help - by philsmd - 05-15-2020, 12:59 PM
RE: HC and Blowfish Advanced CS Help - by 0x4n6 - 05-15-2020, 04:13 PM
RE: HC and Blowfish Advanced CS Help - by womble - 05-16-2020, 03:55 AM
RE: HC and Blowfish Advanced CS Help - by 0x4n6 - 05-19-2020, 08:20 AM
RE: HC and Blowfish Advanced CS Help - by womble - 05-19-2020, 04:07 PM
RE: HC and Blowfish Advanced CS Help - by 0x4n6 - 05-19-2020, 08:29 PM
RE: HC and Blowfish Advanced CS Help - by NoolanJ - 08-19-2022, 11:02 PM
RE: HC and Blowfish Advanced CS Help - by womble - 02-20-2024, 02:06 AM