Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It seems what you need is fairly simple. (Although finding an elegant mathematical solution to this problem may be fun it's really not necessary) SHA-256 is a 32 byte long array. The letters and numbers you see are just the hexadecimal representation of the array. Since a Hex digit requires 4 bits of data each combination of two letters or numbers (or letters and numbers) represents 1 byte. This is why you need a 64 long character string to represent a 32 byte array.</p> <p>To my knowledge WinRar has a password limit of 177 characters and 7z has no limitation. Theoretically you could use your original 64 character SHA-256 representation as a password. The generated password is very strong since it has 16^64 == 2^256 combinations.</p> <p>However as it happens - a shorter password but a lot stronger can be generated using Base64 encoding (Wikipedia is a good place to start). With Base64 your 32 bytes array can be represented as a 43 character long password comprised of uppercase and lowercase letters as well as 9 digits and the + and / characters. So you get 64^43 > 2^256.</p> <p>You can easily convert the Base64 string back to the hash.</p> <p><strong>As a side note:</strong> You should notice that since AES256 uses a 256 bit key it's actually quite useless to generate a stronger password since in that case the attacker can just attack the key and neglect the password so using the SHA-256 is really enough. But I like the fact that we can generate a 43 character long password stronger than the 64 character long one.</p> <p><strong>And yet another side note:</strong> Depending on the type of characters the compressor you will use accepts as a password character you could design your own Base128 encoding and lower the number of characters to 37.</p> <p>Also I would suggest using 7z as it is both fast, very capable and last but not least open source.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload