0

As the title suggests, can an encrypted data's key be changed once it's been set without resetting the original data with the LibSodium PHP library?

I've searched high and low but I can't seem to find anything!

Alex Howansky
  • 50,515
  • 8
  • 78
  • 98
Jake
  • 37
  • 5

1 Answers1

0

Michael Fehr's comment on the original post is correct:

Short answer: no. You have to decrypt the data with the old key and re-encrypt with the new key.

tedtanner
  • 577
  • 6
  • 19
Jake
  • 37
  • 5