LUKS 硬盘加密:最大密码长度?

use*_*467 4 encryption password luks

ubuntu (luks) 上的 hardrive 加密选项中是否有密码的最大长度?

Lek*_*eyn 5

LUKS 配置通过cryptsetup它具有 512 个字符的编译限制,用于交互式密码。理论上,密码短语的长度没有限制,因为它是通过密钥推导函数处理的。

$ crypsetup --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)

Default compiled-in device cipher parameters:
        loop-AES: aes, Key 256 bits
        plain: aes-cbc-essiv:sha256, Key: 256 bits, Password hashing: ripemd160
        LUKS1: aes-xts-plain64, Key: 256 bits, LUKS header hashing: sha1, RNG: /dev/urandom
Run Code Online (Sandbox Code Playgroud)