jay010101 Posted March 7, 2021 Share Posted March 7, 2021 I have an Unassigned Device external drive that I've attached to my unraid server that I want to encrypt. Everything seems to work fine as I click the FORMAT button under UD on the MAIN screen. I select XFS-ENCRYPTED and it asked me for my password. I used a long 26 character password, which I have used with LUKS before. No error messages and the format goes through. I go into the settings for UD and set the disk password so unraid can mount it with no error message, but when I attempt to mount it will not mount. In the log settings is says this So I re-partitioned the drive again setting a new password in case there was an error in entering the password the first time. I tried mounting and it gave the same error message. I tried mounting using the command line which gave the same error No key Found. So I re-partitioned again using a 16 character password and it worked fine. I've used LUKS encryption before with very long password lengths, is there a reason unraid is restricting the number of characters? What is the max password length? Thank you. Quote Link to comment
Opawesome Posted March 20, 2021 Share Posted March 20, 2021 (edited) On 3/7/2021 at 6:49 PM, jay010101 said: What is the max password length? https://gitlab.com/cryptsetup/cryptsetup/-/wikis/FrequentlyAskedQuestions does not say, but some guy here says it's 512. But https://gitlab.com/cryptsetup/cryptsetup/-/wikis/FrequentlyAskedQuestions#1-general-questions does indicate that : Quote PASSPHRASE CHARACTER SET: [...]It is highly advisable to only use the 95 printable characters from the first 128 characters of the ASCII table, as they will always have the same binary representation. Other characters may have different encoding depending on system configuration and your passphrase will not work with a different encoding. A table of the standardized first 128 ASCII characters can, e.g. be found on https://en.wikipedia.org/wiki/ASCII Maybe that was your issue. Best, OP Edited March 21, 2021 by Opawesome Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.