Needed to tie the encryption to the program. I read a little on this topic.
As I understand it, suitable encryption with the private key. The user's password will be the private key on the basis of which will be used to encrypt data. I really enjoyed the fact that this approach does not need to store the password.
But there was a problem: users are, respectively, the passwords are different, and need access to shared data.
What you can do in this case?