Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder interface { Create() Builder WithPassword(password []byte) Builder Now() (Encryption, error) }
Builder represents the builder
type Encryption ¶
type Encryption interface { Encrypt(message []byte) (string, error) Decrypt(encryptedText string) ([]byte, error) }
Encryption represents an encryption
func NewEncryption ¶
func NewEncryption(pass string) Encryption
NewEncryption creates a new encryption instance
Click to show internal directories.
Click to hide internal directories.