Is there a way to DELETE an Encrypted Key

If you’re faced with compliance requirements that require rotating the encryption key stored in Anvil secrets, then you’ll need to implement a routine to decrypt all the encrypted values in your data table using the existing key, re-encrypt those values using a new key stored in Anvil secrets, and save them back to the database in the same cells from which they were retrieved. When the rotation process is complete, you can manually remove the previous encryption key from Anvil secrets. That’s the only reason you should have to manually create and delete keys stored in Anvil secrets, but that hasn’t been listed as a requirement in your use case. It also sounds like you will have no use for hashing, because you need to encrypt and decrypt saved values.

1 Like

I think I have got a solution. I appreciate all the help!

Thanks

You save it in a table, you are not using the secrets service here. So you can delete it just like you delete any other table row.

1 Like