Maximum length of a LUKS passphrase

luks

Anyone know the maximum length of a LUKS passphrase?

The passphrase will be randomly generated, and I can create one with any length.

I am using CentOS 6 with Linux kernel 2.6.32-573.12.1.el6.x86_64, and cryptsetup-luks version 1.2.0-11.el6.x86_64

Best Answer

The built-in help function should display what options/limits were used:

cryptsetup --help

...
Default compiled-in key and passphrase parameters:
Maximum keyfile size: 8192kB,
Maximum interactive passphrase length 512 (characters)
Default PBKDF2 iteration time for LUKS: 1000 (ms)

Related Topic