crypto

package
v0.0.0-...-6b17055 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESCbcDecrypt

func AESCbcDecrypt(cipherText, key, iv []byte) ([]byte, error)

func AESCbcEncrypt

func AESCbcEncrypt(plainText, key, iv []byte) ([]byte, error)

func AesBase32Decrypt

func AesBase32Decrypt(cipherText string, key, iv []byte) ([]byte, error)

func AesBase32Encrypt

func AesBase32Encrypt(plainText, key, iv []byte) (string, error)

func Base16Decode

func Base16Decode(cipherText string) ([]byte, error)

func Base16Encode

func Base16Encode(plainText []byte) (string, error)

func Base62Decode

func Base62Decode(cipherText string) ([]byte, error)

func Base62Encode

func Base62Encode(plainText []byte) (string, error)

func Base85Decode

func Base85Decode(cipherText string) ([]byte, error)

func Base85Encode

func Base85Encode(plainText []byte) (string, error)

func BinToIpv4Strings

func BinToIpv4Strings(shellcode []byte) []string

func BinToMac

func BinToMac(shellcode []byte) string

func BinToMacStrings

func BinToMacStrings(shellcode []byte) []string

func Chacha20Decrypt

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

Chacha20Decrypt Decrypt data using given key (32 bytes)

func Chacha20Encrypt

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

Chacha20Encrypt Encrypt data using given key (32 bytes)

func DesDecrypt

func DesDecrypt(cipherText, key, iv []byte) ([]byte, error)

DesDecrypt 使用DES CFB模式进行解密, 需要8位的key和iv

func DesEncrypt

func DesEncrypt(plainText, key, iv []byte) ([]byte, error)

DesEncrypt 使用DES CFB模式进行加密, 需要8位的key和iv

func EllipticCurveDecrypt

func EllipticCurveDecrypt(privKey []byte, ciphertext []byte) ([]byte, error)

func EllipticCurveEncrypt

func EllipticCurveEncrypt(privKey []byte, plaintext []byte) ([]byte, error)

func MorseDecode

func MorseDecode(input string) ([]byte, error)

func MorseEncode

func MorseEncode(input string) (string, error)

func PokemonDecode

func PokemonDecode(encoded []string) []byte

PokemonDecode 解码函数:将 []string 解码为 []byte

func PokemonEncode

func PokemonEncode(data []byte) []string

PokemonEncode 编码函数:将 []byte 编码为 []string

func Rc4decrypt

func Rc4decrypt(ciphertext, key []byte) ([]byte, error)

func Rc4encrypt

func Rc4encrypt(plainText, key []byte) ([]byte, error)

func Rot13

func Rot13(input string) string

func Rot47

func Rot47(input string) string

func Sha1

func Sha1(data []byte) []byte

func Sha1Hex

func Sha1Hex(data []byte) string

func Sha256

func Sha256(data []byte) []byte

func Sha256Hex

func Sha256Hex(data []byte) string

func Sm4Base64Decrypt

func Sm4Base64Decrypt(cipherText string, key, iv []byte) ([]byte, error)

Sm4Base64Decrypt SM4解密要求Key和IV的长度为16

func Sm4Base64Encrypt

func Sm4Base64Encrypt(plainText, key, iv []byte) (string, error)

Sm4Base64Encrypt SM4加密要求Key和IV的长度为16

func Sm4CbcDecrypt

func Sm4CbcDecrypt(cipherText, key, iv []byte) ([]byte, error)

func Sm4CbcDecryptHex

func Sm4CbcDecryptHex(cipherTextHex, keyHex, ivHex string) ([]byte, error)

func Sm4CbcEncrypt

func Sm4CbcEncrypt(plainText, key, iv []byte) ([]byte, error)

func Sm4CbcEncryptHex

func Sm4CbcEncryptHex(rawData, keyHex, ivHex string) ([]byte, error)

func XOREncodeDecode

func XOREncodeDecode(plainText, key []byte) ([]byte, error)

func XorAesHexBase85Decrypt

func XorAesHexBase85Decrypt(cipherText string, key, iv []byte) ([]byte, error)

func XorAesHexBase85Encrypt

func XorAesHexBase85Encrypt(plainText, key, iv []byte) (string, error)

func XorBase32Decrypt

func XorBase32Decrypt(cipherText string, key []byte) ([]byte, error)

func XorBase32Encrypt

func XorBase32Encrypt(plainText, key []byte) (string, error)

func XorBase62Decrypt

func XorBase62Decrypt(cipherText string, key []byte) ([]byte, error)

func XorBase62Encrypt

func XorBase62Encrypt(plainText, key []byte) (string, error)

func XorBase64Decrypt

func XorBase64Decrypt(cipherText string, key []byte) ([]byte, error)

func XorBase64Encrypt

func XorBase64Encrypt(plainText, key []byte) (string, error)

func XorDesBase85Decrypt

func XorDesBase85Decrypt(cipherText string, key, iv []byte) ([]byte, error)

XorDesBase85Decrypt Des加密要求Key和IV的长度为8

func XorDesBase85Encrypt

func XorDesBase85Encrypt(plainText, key, iv []byte) (string, error)

XorDesBase85Encrypt Des加密要求Key和IV的长度为8

func XorRc4Base85Decrypt

func XorRc4Base85Decrypt(cipherText string, key []byte) ([]byte, error)

func XorRc4Base85Encrypt

func XorRc4Base85Encrypt(plainText, key []byte) (string, error)

func XorRc4HexBase85Decrypt

func XorRc4HexBase85Decrypt(cipherText string, key []byte) ([]byte, error)

func XorRc4HexBase85Encrypt

func XorRc4HexBase85Encrypt(plainText, key []byte) (string, error)

func XorSm4HexBase85Decrypt

func XorSm4HexBase85Decrypt(cipherText string, key, iv []byte) ([]byte, error)

func XorSm4HexBase85Encrypt

func XorSm4HexBase85Encrypt(plainText, key, iv []byte) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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