crypto

package
v0.2.70 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 8 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) Encrypt added in v0.2.3

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

Encrypt is same as TryEncrypt but note used yet

func (*Cipher) TryDecrypt

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

func (*Cipher) TryEncrypt

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

TryEncrypt encrypts dat with the cipher. This will be merged with Encrypt function later.

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