pgp

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2017 License: MIT Imports: 6 Imported by: 1

Documentation

Overview

Copyright 2017 Elliott Polk. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Index

Constants

View Source
const PGPMessageType string = "PGP MESSAGE"

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(token, ciphertxt []byte) ([]byte, error)

Decrypt expects an OpenPGP encoded ciphertext, returning the decrypted results of the cipher text using the provided token.

func Encrypt

func Encrypt(key, text []byte) ([]byte, error)

Encrypt takes a key and text which attempts to encode using the OpenPGP symmetrical encryption.

Types

This section is empty.

Jump to

Keyboard shortcuts

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