isEncrypted checks if a string value is encrypted (starts with encryption prefix).
(value string)
| 117 | |
| 118 | // isEncrypted checks if a string value is encrypted (starts with encryption prefix). |
| 119 | func isEncrypted(value string) bool { |
| 120 | return strings.HasPrefix(value, encryptionPrefix) |
| 121 | } |
| 122 | |
| 123 | // EncryptField encrypts a sensitive field value using age encryption. |
| 124 | // Returns the encrypted value with the encryption prefix, or an error. |
no outgoing calls
no test coverage detected