A simple command line password manager

I made a simple command line password manager: GitHub - mikaelstaldal/pw: A command line password manager

It's based on encrypting the passwords file with scrypt. I was considering to use one of the Rust libraries for scrypt available, but I got the impression that they are not really production-ready, and I want solid code for encryption. So I ended up using the standalone scrypt binary instead, which seems more mature to me. Even though that makes error handling and testing a bit annoying.

The password generation is probably a bit over-engineered. Perhaps I should just use getrandom, but then I have to map from bytes to characters, which apparently is a bit tricky to do properly.