Our application runs on a Raspberry Pi and is installed on many places on customer sites. The Pi is cheap and good enough for our purposes. However, we have a problenm that for storing the user's login password on disk generating a secret with something like 50.000 iterations to be reasonably safe takes way too much time on the slow Pi. When the user logs in the password has to be decrypted and those 50.000 iterations have to be executed again which takes minutes on the Pi. The web frontend gets a timeout and the user won't wait for minutes to log in anyway.
My question is whether anyone has an idea how to encrypt and decrypt passwords in a safe way on disk given a CPU with little processing power.