Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParsePrivateKey ¶
func ParsePrivateKey(key []byte) (*rsa.PrivateKey, error)
Types ¶
type ConfigDecryptor ¶
type ConfigDecryptor struct {
// contains filtered or unexported fields
}
func NewConfigDecryptor ¶
func NewConfigDecryptor(valueDecryptor *ValueDecryptor) *ConfigDecryptor
type Decryptor ¶
func NewDecryptor ¶
type ValueDecryptor ¶
type ValueDecryptor struct {
// contains filtered or unexported fields
}
func NewValueDecryptor ¶
func NewValueDecryptor(key []byte, options ...ValueDecryptorOption) (*ValueDecryptor, error)
func (ValueDecryptor) DecryptValue ¶
func (d ValueDecryptor) DecryptValue(value string) (string, error)
type ValueDecryptorOption ¶
type ValueDecryptorOption func(decryptor *ValueDecryptor) error
func WithSalt ¶
func WithSalt(salt string) ValueDecryptorOption
Click to show internal directories.
Click to hide internal directories.