crypt

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2016 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPublicKeyToMap

func AddPublicKeyToMap(username string, key string)

func Decrypt

func Decrypt(base64msg string) (*openpgp.MessageDetails, error)

Decrypts an unarmored base64 message XXX: DEPRICATED

func DecryptMessage

func DecryptMessage(base64msg string) (*openpgp.MessageDetails, *common.Message, error)

Decrypts an Encrypted Message String using the gob protocol

func Encrypt

func Encrypt(message string, users []string) (string, error)

Encrypts a message to the users XXX: DEPRICATED

func EncryptMessage

func EncryptMessage(msg common.Message) (string, error)

Encrypts a message struct using the gob protocol

func GetKeyMap

func GetKeyMap() map[string]*openpgp.Entity

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL