crypto

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Crypto

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

Crypto 加密 https://www.kancloud.cn/wizardforcel/golang-stdlib-ref/121494 https://csrc.nist.gov/projects/block-cipher-techniques/bcm/current-modes https://www.cnblogs.com/happyhippy/archive/2006/12/23/601353.html

func NewCrypto

func NewCrypto(key string) (*Crypto, error)

NewCrypto NewCrypto key: 16, 24, or 32 bytes to select AES-128, AES-192, or AES-256.

func (Crypto) Decrypt

func (e Crypto) Decrypt(r string) (money string, err error)

Decrypt 解码

func (Crypto) Encrypt

func (e Crypto) Encrypt(money string) (r string, err error)

Encrypt 加密

Jump to

Keyboard shortcuts

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