secrets: add scanners for transparent encryption and decryption
Created by: unknwon
Add two types in secrets
package: StringValue
and NullStringValue
, both implements sql.Scanner
and driver.Valuer
for "automatic" encryption and decryption during DB scan and write time.
This is a subset of #13759 and extracted here to have much smaller diff to review.