Re:Ask HN: How to safely share passwords with normal users o...
by oseibonsu on Friday July 02, 2021 @11:08AM
(#27712488)
I should be more broad. Any type of secret that needs to be sent to a user.
[ Parent
| on HN ]
Re:Ask HN: How to safely share passwords with normal users o...
by _448 on Friday July 02, 2021 @12:44PM
(#27713843)
How are the users going to access the password? Via mobile app, browser, desktop app?
One way is to generate a temporary public-private key on the user-agent. Let the user-agent send the public key to the server. The server encrypts the data with the public key, sends the encrypted data to the user-agent and then deletes the public key. The user-agent then decrypts the received encrypted data using the private key. Once the data is decrypted, the user-agent deletes the public and private keys.