crypto

package
v5.5.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cipher

type Cipher interface {
	Encrypt(ctx context.Context, plainBlob []byte) ([]byte, error)
	Decrypt(ctx context.Context, encryptedBlob []byte) ([]byte, error)
}

type CipherText

type CipherText interface {
	Cipher
	EncryptString(ctx context.Context, plaintext string) (string, error)
	DecryptString(ctx context.Context, encryptedSting string) (string, error)
}

type Padder

type Padder interface {
	Pad(plainData []byte) []byte
	UnPad(encryptedData []byte) []byte
}

Directories

Path Synopsis
Package aes is a wrapped for AES/ECB/PKCS5PADDING
Package aes is a wrapped for AES/ECB/PKCS5PADDING

Jump to

Keyboard shortcuts

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