Documentation
¶
Overview ¶
This package assumes that the caller's use case is not sensitive to timing attacks. In other words, it assumes that, even if an attacker can figure out the current index of the secret key originally used to encrypt the data, that information would not be materially useful to them. This is a reasonable assumption for most use cases. This is a light base64 wrapper over the "securebytes" package.
Index ¶
Constants ¶
View Source
const LegacyHKDFInfoStr = "vorma_kit_securestring_v1_encryption_key"
Deprecated: Use only if you need to support legacy encrypted values.
View Source
const MaxBase64Size = securebytes.MaxSize + securebytes.MaxSize/3
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SecureString ¶
type SecureString string // Base64-encoded, encrypted value
func Serialize ¶
func Serialize(ks *keyset.Keyset, rv securebytes.RawValue) (SecureString, error)
Click to show internal directories.
Click to hide internal directories.