I am setting a up a Raspberry Pi that will be portable and often set up in areas without electricity or internet access and with poor cell service. I'd like to encrypt and decrypt data without retrieving keys from another server.
The solution I came up with is using an IoT HSM - Zymkey for raspberry pi
If someone were to steal the Raspberry Pi I don't want them to able to able to have access to the encryption keys. So I thought maybe trimming off the last few characters from the key might help. I have a diagram below.
Is this method safe? Is it even useful? Or is this dangerous?