Documentation ¶ Overview ¶ aesopenssl implements AES that is compatible with `aes-256-cbc -salt`. Index ¶ func Decrypt(ciphertextStr, password string, useBase58 bool) (string, error) func Encrypt(plaintext, password string, useBase58 bool) (string, error) type Crypter func (c *Crypter) Decrypt(ciphertext string) (string, error) func (c *Crypter) Encrypt(plaintext string) (string, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Decrypt ¶ func Decrypt(ciphertextStr, password string, useBase58 bool) (string, error) Decrypt decrypts Base58 or Base64 encoded ciphertext func Encrypt ¶ func Encrypt(plaintext, password string, useBase58 bool) (string, error) Encrypt encrypts plaintext and returns Base58 or Base64 encoded ciphertext Types ¶ type Crypter ¶ type Crypter struct { Password string UseBase58 bool } func (*Crypter) Decrypt ¶ func (c *Crypter) Decrypt(ciphertext string) (string, error) func (*Crypter) Encrypt ¶ func (c *Crypter) Encrypt(plaintext string) (string, error) Source Files ¶ View all Source files openssl_compat.go Directories ¶ Show internal Expand all Path Synopsis cmd aesopenssl command Click to show internal directories. Click to hide internal directories.