Rocket icon indicating copy to clipboard operation
Rocket copied to clipboard

Encrypt data with secret key

Open va-an opened this issue 1 year ago • 5 comments

Implements encryption and decryption functions for arbitrary textual data, as discussed in #477.

  • Added functions encrypt and decrypt to SecretKey.
  • AAD is not used since we don't have metadata like cookie names.
  • Functions for encryption/decryption are based on implementations from cookie-rs.
  • Added example with suggested usage.

va-an avatar Jun 03 '24 14:06 va-an

Rebased on master.

va-an avatar Jun 08 '24 18:06 va-an

There has been an issue with CI on Windows, so you will need to merge the latest commit from master before CI will pass.

the10thWiz avatar Jun 10 '24 23:06 the10thWiz

There has been an issue with CI on Windows, so you will need to merge the latest commit from master before CI will pass.

Understood, I will do it after I finish making changes based on the comments. Thanks!

va-an avatar Jun 11 '24 19:06 va-an

@the10thWiz Thanks for the thorough review! I merged the changes from master that you mentioned and moved the dependencies to the "secrets" feature. I will address the remaining comments a bit later.

va-an avatar Jul 07 '24 09:07 va-an

@va-an Checking in. Any update?

SergioBenitez avatar Aug 09 '24 00:08 SergioBenitez