IronCoreLabs / ironoxide

Rust SDK for IronCore Privacy Platform
https://docs.rs/ironoxide
GNU Affero General Public License v3.0
10 stars 3 forks source link

Add create_recovery_token method #157

Open skeet70 opened 4 years ago

skeet70 commented 4 years ago

Add a convenience function that performs most of the worked laid out in the "Password Recovery Tokens" section of the data control platform guide. This function should take a password, generate a key, encrypt it, and return the key as a recovery token for display to an end user and the encrypted password (with iv on the front) for storage by the caller.

skeet70 commented 4 years ago

See this for some more discussion if possible.

ernieturner commented 4 years ago

Needs more design of the best way to implement this, maybe we encrypt their private keys instead of encrypting their password.