Documentation ¶ Index ¶ func Hash(key []byte) uint64 type Encrypt func LoadKey(path string, keygen bool) (encrypt *Encrypt, err error) func (enc *Encrypt) Decrypt(cipherText string) (string, error) func (enc *Encrypt) Encrypt(secretMessage string) (string, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Hash ¶ func Hash(key []byte) uint64 Types ¶ type Encrypt ¶ type Encrypt struct { PrivateKey *rsa.PrivateKey } func LoadKey ¶ func LoadKey(path string, keygen bool) (encrypt *Encrypt, err error) func (*Encrypt) Decrypt ¶ func (enc *Encrypt) Decrypt(cipherText string) (string, error) func (*Encrypt) Encrypt ¶ func (enc *Encrypt) Encrypt(secretMessage string) (string, error) Source Files ¶ View all Source files encrypt.go Click to show internal directories. Click to hide internal directories.