mailchain: Index | Files

package encrypter

import ""


Package Files



const (
    // NoOperation encryption type name.
    NoOperation string = "noop"
    // NACL encryption type name.
    NACLECDH string = "nacl-ecdh"
    // AES256CBC encryption type name.
    AES256CBC string = "aes256cbc"

Cipher Name lookup

func GetEncrypter Uses

func GetEncrypter(encryption string, pubKey keys.PublicKey) (crypto.Encrypter, error)

GetEncrypter is an `Encrypter` factory that returns an encrypter

Package encrypter imports 6 packages (graph) and is imported by 2 packages. Updated 2020-03-18. Refresh now. Tools for package owners.