I'm using libsodium to create public/secret key pairs from a password and salt combination by using crypto_pwhash_scryptsalsa208sha256
to generate a seed and passing that seed to crypto_box_seed_keypair
.
Is it safe to recreate the key pair using the password+salt every time I need to use it so I don't have to store the keys (encrypted or not) anywhere in the system?
I would store the salt, and ask for the password again every time it is needed.