Cipher seals and opens user secret statements with AES-256-GCM. The (org, user, name) row key is bound in as additional authenticated data, so a ciphertext copied onto another row fails to decrypt.
| 22 | // (org, user, name) row key is bound in as additional authenticated data, so |
| 23 | // a ciphertext copied onto another row fails to decrypt. |
| 24 | type Cipher struct { |
| 25 | aead cipher.AEAD |
| 26 | } |
| 27 | |
| 28 | // NewCipher builds a Cipher from a base64-encoded (std or url, padded or raw) |
| 29 | // 32-byte key. |
nothing calls this directly
no outgoing calls
no test coverage detected