cryptos

package
v0.0.0-...-643218b Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesCBCDecrypt

func AesCBCDecrypt(ciphertext []byte, key []byte, iv []byte) ([]byte, error)

aesCBCDecrypt AES/CBC/PKCS7Padding 解密

func AesCBCEncrypt

func AesCBCEncrypt(plaintext []byte, key []byte, iv []byte) ([]byte, error)

aesCBCEncrypt AES/CBC/PKCS7Padding 加密

func Hash

func Hash(hashN uint, in []byte) []byte

func Hash2

func Hash2(hash crypto.Hash, in []byte) []byte

func XxteaDecrypt

func XxteaDecrypt(src, secret []byte) []byte

func XxteaEncrypt

func XxteaEncrypt(src, secret []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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