5
$\begingroup$

I am wondering if AES only supports 64 character passwords?

When using truecrypt, the maximum character limit on passwords is 64 characters; however, when using WinRAR, the limit is 128 characters.

What determines the length of passwords I can use with AES?

$\endgroup$
2
  • $\begingroup$ I edited this one as well to help you with your English - it should read better now. As always, if there's anything I've mis-interpreted, feel free to fix it :) $\endgroup$
    – user46
    Apr 9, 2012 at 14:23
  • 1
    $\begingroup$ Don't confuse AES the algorithm with an implementation of AES as part of a cryptosystem. $\endgroup$ Apr 19, 2012 at 0:57

1 Answer 1

2
$\begingroup$

Key sizes for AES are 128-bit, 192-bit and 256-bit. Depending on how you pack characters into bits, will determine how many characters that makes up. For example, you could pack 1000 characters into a 128-bit encryption key using something like PBKDF2 or scrypt.

That said, I wasn't aware that Truecrypt only supports 64 character passwords. Assuming that is correct (and I have no reason to doubt you yet), you could always use a keyfile with Truecrypt if you need a longer password, but keep in mind that a randomly chosen, 64 character password is surely infeasible to break any time soon.

$\endgroup$
9
  • $\begingroup$ The maximum volume password length has been decreased from 100 to 64 characters. This was necessary to avoid the following: When a password longer than 64 characters was passed to HMAC-SHA-1, the whole password was first hashed using SHA-1 and the resultant 160-bit value was then used instead of the original password (which complies with HMAC-SHA-1 specification), thus the password length was in fact reduced. $\endgroup$
    – rezx
    Apr 9, 2012 at 11:58
  • $\begingroup$ @rezx, even with 64 characters, the password length will have to be reduced to work for AES, no? If you use 7 bits to store each character (which works for ASCII), you are left with a 448 bit password. $\endgroup$
    – mikeazo
    Apr 9, 2012 at 12:24
  • $\begingroup$ so i can use 1000 characters password in AES PBKDF2, cuz PBKDF2 convert the password to something else that used to encrypt the data, right $\endgroup$
    – rezx
    Apr 9, 2012 at 12:39
  • 2
    $\begingroup$ @rezx: Somewhat tangentially, that quote from the TrueCrypt version history does not exactly fill me with confidence, since it shows a misunderstanding of how HMAC works. The effective key length of HMAC is limited by the internal state size of the hash, which for SHA-1 is 160 bits. As the output length of SHA-1 is also 160 bits, it makes no noticeable difference whether the key is fed through the hash before use or not. The extra hashing pass just serves to distill the entropy of a long passphrase down to a more compact key string. $\endgroup$ Apr 9, 2012 at 14:21
  • $\begingroup$ what i understand now that every algorithm need a hash to work with, is that right $\endgroup$
    – rezx
    Apr 9, 2012 at 14:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.