crypto

package
v0.1.29 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: Apache-2.0 Imports: 7 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cipher

type Cipher struct {
	// contains filtered or unexported fields
}

Cipher is type for our block AES cipher

func NewCipher

func NewCipher(k []byte) *Cipher

NewCipher creates a new cipher with key 32-byte data given

func (*Cipher) TryDecrypt

func (c *Cipher) TryDecrypt(in []byte) (out []byte)

func (*Cipher) TryEncrypt

func (c *Cipher) TryEncrypt(in []byte) (out []byte)

Directories

Path Synopsis
package db implements Bolt based database which can be encrypted on the fly and which supports automatic backups.
package db implements Bolt based database which can be encrypted on the fly and which supports automatic backups.

Jump to

Keyboard shortcuts

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