zcrypto

package
v0.0.0-...-25fe440 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESCBCDecrypt

func AESCBCDecrypt(encrypted, key, iv []byte, pad Pad) ([]byte, error)

AESCBCDecrypt 普通解密

func AESCBCDecryptWithBase64

func AESCBCDecryptWithBase64(baseEncrypted, key, iv []byte, pad Pad) (string, error)

AESCBCDecryptWithBase64 base64编码后的加密串,返回原始数据

func AESCBCDecryptWithSalt

func AESCBCDecryptWithSalt(data, key []byte, iter int, magic string, pad Pad, h func() hash.Hash) ([]byte, error)

func AESCBCEncrypt

func AESCBCEncrypt(origData, key, iv []byte, pad Pad) ([]byte, error)

AESCBCEncrypt 普通加密

func AESCBCEncryptWithBase64

func AESCBCEncryptWithBase64(origData, key, iv []byte, pad Pad) (string, error)

AESCBCEncryptWithBase64 加密 结果返回base64编码后的string

func AESCBCEncryptWithSalt

func AESCBCEncryptWithSalt(origData, key []byte, iter int, magic string, pad Pad, h func() hash.Hash) ([]byte, error)

func AESCFBDecrypt

func AESCFBDecrypt(encrypted, key, iv []byte, pad Pad) ([]byte, error)

func AESCFBEncrypt

func AESCFBEncrypt(origData, key, iv []byte, pad Pad) ([]byte, error)

func AESDecryptWithSalt

func AESDecryptWithSalt(encrypted, key []byte, iterCount int, magic string, h func() hash.Hash, pad Pad, f func(encrypted, key, iv []byte, pad Pad) ([]byte, error)) ([]byte, error)

func AESECBDecrypt

func AESECBDecrypt(encrypted, key []byte, pad Pad) ([]byte, error)

func AESECBEncrypt

func AESECBEncrypt(origData, key []byte, pad Pad) ([]byte, error)

func AESEncryptWithSalt

func AESEncryptWithSalt(origData, key []byte, iter int, magic string, h func() hash.Hash, pad Pad, f func(origData, key, iv []byte, pad Pad) ([]byte, error)) ([]byte, error)

func AESGCMDecrypt

func AESGCMDecrypt(encrypted, key, additional []byte) ([]byte, error)

func AESGCMDecryptWithNonce

func AESGCMDecryptWithNonce(encrypted, key, nonce, additional []byte) ([]byte, error)

func AESGCMEncrypt

func AESGCMEncrypt(origData, key, additional []byte) ([]byte, error)

func AESGCMEncryptWithNonce

func AESGCMEncryptWithNonce(origData, key, nonce, additional []byte) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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