Worked awesomely on 2 out of three unraid servers I maintain. Unfortunately on one server the password contains `!@` in the array key and since `!` is reserved in bash it creates issues changing the passphrase using the script. I didn't find a way to solve it, yet.
Edit:
in case you have the same issue, change `histchars` to something else. (For example `histchars=~`)