cryptox

package
v0.0.0-...-b871438 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesCbcNoDecode

func AesCbcNoDecode(key []byte, data []byte) ([]byte, error)

AesCbcNoDecode AES解密 加密模式:CBC 填充:No

func AesCbcNoEncode

func AesCbcNoEncode(key []byte, data []byte) ([]byte, error)

AesCbcNoEncode AES加密 加密模式:CBC 填充:No

func AesCbcPKCS5Decode

func AesCbcPKCS5Decode(key []byte, data []byte) ([]byte, error)

AesCbcPKCS5Decode AES解密 加密模式:CBC 填充:PKCS5

func AesCbcPKCS5Encode

func AesCbcPKCS5Encode(key []byte, data []byte) ([]byte, error)

AesCbcPKCS5Encode AES加密 加密模式:CBC 填充:PKCS5

func AesCbcPKCS7Decode

func AesCbcPKCS7Decode(key []byte, data []byte) ([]byte, error)

AesCbcPKCS7Decode AES解密 加密模式:CBC 填充:PKCS7

func AesCbcPKCS7Encode

func AesCbcPKCS7Encode(key []byte, data []byte) ([]byte, error)

AesCbcPKCS7Encode AES加密 加密模式:CBC 填充:PKCS7

func AesCbcZeroDecode

func AesCbcZeroDecode(key []byte, data []byte) ([]byte, error)

AesCbcZeroDecode AES解密 加密模式:CBC 填充:Zero

func AesCbcZeroEncode

func AesCbcZeroEncode(key []byte, data []byte) ([]byte, error)

AesCbcZeroEncode AES加密 加密模式:CBC 填充:Zero

func AesCfbNoDecode

func AesCfbNoDecode(key []byte, data []byte) ([]byte, error)

AesCfbNoDecode AES解密 加密模式:CFB 填充:No

func AesCfbNoEncode

func AesCfbNoEncode(key []byte, data []byte) ([]byte, error)

AesCfbNoEncode AES加密 加密模式:CFB 填充:No

func AesCfbPKCS5Decode

func AesCfbPKCS5Decode(key []byte, data []byte) ([]byte, error)

AesCfbPKCS5Decode AES解密 加密模式:CFB 填充:PKCS5

func AesCfbPKCS5Encode

func AesCfbPKCS5Encode(key []byte, data []byte) ([]byte, error)

AesCfbPKCS5Encode AES加密 加密模式:CFB 填充:PKCS5

func AesCfbPKCS7Decode

func AesCfbPKCS7Decode(key []byte, data []byte) ([]byte, error)

AesCfbPKCS7Decode AES解密 加密模式:CFB 填充:PKCS7

func AesCfbPKCS7Encode

func AesCfbPKCS7Encode(key []byte, data []byte) ([]byte, error)

AesCfbPKCS7Encode AES加密 加密模式:CFB 填充:PKCS7

func AesCfbZeroDecode

func AesCfbZeroDecode(key []byte, data []byte) ([]byte, error)

AesCfbZeroDecode AES解密 加密模式:CFB 填充:Zero

func AesCfbZeroEncode

func AesCfbZeroEncode(key []byte, data []byte) ([]byte, error)

AesCfbZeroEncode AES加密 加密模式:CFB 填充:Zero

func AesCtrNoDecode

func AesCtrNoDecode(key []byte, data []byte) ([]byte, error)

AesCtrNoDecode AES解密 加密模式:CTR 填充:No

func AesCtrNoEncode

func AesCtrNoEncode(key []byte, data []byte) ([]byte, error)

AesCtrNoEncode AES加密 加密模式:CTR 填充:No

func AesCtrPKCS5Decode

func AesCtrPKCS5Decode(key []byte, data []byte) ([]byte, error)

AesCtrPKCS5Decode AES解密 加密模式:CTR 填充:PKCS5

func AesCtrPKCS5Encode

func AesCtrPKCS5Encode(key []byte, data []byte) ([]byte, error)

AesCtrPKCS5Encode AES加密 加密模式:CTR 填充:PKCS5

func AesCtrPKCS7Decode

func AesCtrPKCS7Decode(key []byte, data []byte) ([]byte, error)

AesCtrPKCS7Decode AES解密 加密模式:CTR 填充:PKCS7

func AesCtrPKCS7Encode

func AesCtrPKCS7Encode(key []byte, data []byte) ([]byte, error)

AesCtrPKCS7Encode AES加密 加密模式:CTR 填充:PKCS7

func AesCtrZeroDecode

func AesCtrZeroDecode(key []byte, data []byte) ([]byte, error)

AesCtrZeroDecode AES解密 加密模式:CTR 填充:Zero

func AesCtrZeroEncode

func AesCtrZeroEncode(key []byte, data []byte) ([]byte, error)

AesCtrZeroEncode AES加密 加密模式:CTR 填充:Zero

func AesEcbNoDecode

func AesEcbNoDecode(key []byte, data []byte) ([]byte, error)

AesEcbNoDecode AES解密 加密模式:ECB 填充:No

func AesEcbNoEncode

func AesEcbNoEncode(key []byte, data []byte) ([]byte, error)

AesEcbNoEncode AES加密 加密模式:ECB 填充:No

func AesEcbPKCS5Decode

func AesEcbPKCS5Decode(key []byte, data []byte) ([]byte, error)

AesEcbPKCS5Decode AES解密 加密模式:ECB 填充:PKCS5

func AesEcbPKCS5Encode

func AesEcbPKCS5Encode(key []byte, data []byte) ([]byte, error)

AesEcbPKCS5Encode AES加密 加密模式:ECB 填充:PKCS5

func AesEcbPKCS7Decode

func AesEcbPKCS7Decode(key []byte, data []byte) ([]byte, error)

AesEcbPKCS7Decode AES解密 加密模式:ECB 填充:PKCS7

func AesEcbPKCS7Encode

func AesEcbPKCS7Encode(key []byte, data []byte) ([]byte, error)

AesEcbPKCS7Encode AES加密 加密模式:ECB 填充:PKCS7

func AesEcbZeroDecode

func AesEcbZeroDecode(key []byte, data []byte) ([]byte, error)

AesEcbZeroDecode AES解密 加密模式:ECB 填充:Zero

func AesEcbZeroEncode

func AesEcbZeroEncode(key []byte, data []byte) ([]byte, error)

AesEcbZeroEncode AES加密 加密模式:ECB 填充:Zero

func AesGcmNoDecode

func AesGcmNoDecode(key []byte, data []byte) ([]byte, error)

AesGcmNoDecode AES解密 加密模式:GCM 填充:No

func AesGcmNoEncode

func AesGcmNoEncode(key []byte, data []byte) ([]byte, error)

AesGcmNoEncode AES加密 加密模式:GCM 填充:No

func AesGcmPKCS5Decode

func AesGcmPKCS5Decode(key []byte, data []byte) ([]byte, error)

AesGcmPKCS5Decode AES解密 加密模式:GCM 填充:PKCS5

func AesGcmPKCS5Encode

func AesGcmPKCS5Encode(key []byte, data []byte) ([]byte, error)

AesGcmPKCS5Encode AES加密 加密模式:GCM 填充:PKCS5

func AesGcmPKCS7Decode

func AesGcmPKCS7Decode(key []byte, data []byte) ([]byte, error)

AesGcmPKCS7Decode AES解密 加密模式:GCM 填充:PKCS7

func AesGcmPKCS7Encode

func AesGcmPKCS7Encode(key []byte, data []byte) ([]byte, error)

AesGcmPKCS7Encode AES加密 加密模式:GCM 填充:PKCS7

func AesGcmZeroDecode

func AesGcmZeroDecode(key []byte, data []byte) ([]byte, error)

AesGcmZeroDecode AES解密 加密模式:GCM 填充:Zero

func AesGcmZeroEncode

func AesGcmZeroEncode(key []byte, data []byte) ([]byte, error)

AesGcmZeroEncode AES加密 加密模式:GCM 填充:Zero

func AesOfbNoDecode

func AesOfbNoDecode(key []byte, data []byte) ([]byte, error)

AesOfbNoDecode AES解密 加密模式:OFB 填充:No

func AesOfbNoEncode

func AesOfbNoEncode(key []byte, data []byte) ([]byte, error)

AesOfbNoEncode AES加密 加密模式:OFB 填充:No

func AesOfbPKCS5Decode

func AesOfbPKCS5Decode(key []byte, data []byte) ([]byte, error)

AesOfbPKCS5Decode AES解密 加密模式:OFB 填充:PKCS5

func AesOfbPKCS5Encode

func AesOfbPKCS5Encode(key []byte, data []byte) ([]byte, error)

AesOfbPKCS5Encode AES加密 加密模式:OFB 填充:PKCS5

func AesOfbPKCS7Decode

func AesOfbPKCS7Decode(key []byte, data []byte) ([]byte, error)

AesOfbPKCS7Decode AES解密 加密模式:OFB 填充:PKCS7

func AesOfbPKCS7Encode

func AesOfbPKCS7Encode(key []byte, data []byte) ([]byte, error)

AesOfbPKCS7Encode AES加密 加密模式:OFB 填充:PKCS7

func AesOfbZeroDecode

func AesOfbZeroDecode(key []byte, data []byte) ([]byte, error)

AesOfbZeroDecode AES解密 加密模式:OFB 填充:Zero

func AesOfbZeroEncode

func AesOfbZeroEncode(key []byte, data []byte) ([]byte, error)

AesOfbZeroEncode AES加密 加密模式:OFB 填充:Zero

func AnsiX923Padding

func AnsiX923Padding(plainText []byte, blockSize int) ([]byte, error)

AnsiX923Padding ansi x9.23填充

func AnsiX923UnPadding

func AnsiX923UnPadding(cipherText []byte) ([]byte, error)

AnsiX923UnPadding ansi x9.23去除填充

func FileMd5

func FileMd5(path string) (string, error)

func FileSha224

func FileSha224(path string) (string, error)

func FileSha256

func FileSha256(path string) (string, error)

func FileSha384

func FileSha384(path string) (string, error)

func FileSha512

func FileSha512(path string) (string, error)

func FileSha512_224

func FileSha512_224(path string) (string, error)

func FileSha512_256

func FileSha512_256(path string) (string, error)

func HmacMd5

func HmacMd5(key, data string) string

func HmacSha224

func HmacSha224(key, data string) string

func HmacSha256

func HmacSha256(key, data string) string

func HmacSha384

func HmacSha384(key, data string) string

func HmacSha512

func HmacSha512(key, data string) string

func Iso10126Padding

func Iso10126Padding(plainText []byte, blockSize int) ([]byte, error)

Iso10126Padding iso-10126填充

func Iso10126UnPadding

func Iso10126UnPadding(cipherText []byte) ([]byte, error)

Iso10126UnPadding iso-10126去除填充

func Md5

func Md5[M string | []byte](s M) string

func Md5WithReader

func Md5WithReader(file io.Reader) (string, error)

func NoPadding

func NoPadding(data []byte, size int) ([]byte, error)

NoPadding 不填充

func NoUnPadding

func NoUnPadding(data []byte) ([]byte, error)

NoUnPadding 不去除填充

func PKCS5Padding

func PKCS5Padding(plainText []byte, blockSize int) ([]byte, error)

PKCS5Padding PKCS5填充

func PKCS5UnPadding

func PKCS5UnPadding(cipherText []byte) ([]byte, error)

PKCS5UnPadding PKCS5去除填充

func PKCS7Padding

func PKCS7Padding(data []byte, size int) ([]byte, error)

PKCS7Padding PKCS7填充

func PKCS7UnPadding

func PKCS7UnPadding(data []byte) ([]byte, error)

PKCS7UnPadding PKCS7去除填充

func Sha224

func Sha224[M string | []byte](s M) string

func Sha224WithReader

func Sha224WithReader(file io.Reader) (string, error)

func Sha256

func Sha256[M string | []byte](s M) string

func Sha256WithReader

func Sha256WithReader(file io.Reader) (string, error)

func Sha384

func Sha384[M string | []byte](s M) string

func Sha384WithReader

func Sha384WithReader(file io.Reader) (string, error)

func Sha512

func Sha512[M string | []byte](s M) string

func Sha512WithReader

func Sha512WithReader(file io.Reader) (string, error)

func Sha512_224

func Sha512_224[M string | []byte](s M) string

func Sha512_224WithReader

func Sha512_224WithReader(file io.Reader) (string, error)

func Sha512_256

func Sha512_256[M string | []byte](s M) string

func Sha512_256WithReader

func Sha512_256WithReader(file io.Reader) (string, error)

func UUID

func UUID() string

func ZeroPadding

func ZeroPadding(data []byte, size int) ([]byte, error)

ZeroPadding Zero填充

func ZeroUnPadding

func ZeroUnPadding(cipherText []byte) ([]byte, error)

ZeroUnPadding Zero去除填充

Types

This section is empty.

Jump to

Keyboard shortcuts

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