crypt

package
v0.0.0-...-cb86aa5 Latest Latest
Warning

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

Go to latest
Published: May 13, 2016 License: BSD-3-Clause Imports: 9 Imported by: 1

Documentation

Overview

Package crypt provides simple, password-based encryption and decryption of data blobs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(password string, encrypted []byte) (plaintext []byte, err error)

Decrypt decrypts the encrypted packet using the given password. It returns the decrypted data.

func Encrypt

func Encrypt(password string, plaintext []byte) (encrypted []byte, err error)

Encrypt encrypts the plaintext into an encrypted packet using the given password. The password is required for decryption.

Types

This section is empty.

Jump to

Keyboard shortcuts

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