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.
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.