Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cipher ¶
type Cipher struct {
// contains filtered or unexported fields
}
Cipher struct for storing encryption key and wrapping it for encryption/decryption.
func NewFromBytes ¶
NewFromBytes initializes a new Cipher using a byte slice.
func NewFromHexString ¶
NewFromHexString initializes a new Cipher using a hex string
func (*Cipher) DecryptHexString ¶
DecryptHexString convenience method. This method expects the encrypted string to have been hex encoded.
Click to show internal directories.
Click to hide internal directories.