Documentation
¶
Index ¶
- Constants
- Variables
- func AESCBCDecrypt(cipherText, key, iv []byte) ([]byte, error)
- func AESCBCEncrypt(plainText, key, iv []byte) ([]byte, error)
- func AESCFBDecrypt(cipherText, key, iv []byte) ([]byte, error)
- func AESCFBEncrypt(plainText, key, iv []byte) ([]byte, error)
- func AesBase32Decrypt(cipherText string, key, iv []byte) ([]byte, error)
- func AesBase32Encrypt(plainText, key, iv []byte) (string, error)
- func Base16Decode(cipherText string) ([]byte, error)
- func Base16Encode(plainText []byte) (string, error)
- func Base62Decode(cipherText string) ([]byte, error)
- func Base62Encode(plainText []byte) (string, error)
- func Base85Decode(cipherText string) ([]byte, error)
- func Base85Encode(plainText []byte) (string, error)
- func BearDecode(cipherText string) []byte
- func BearEncode(plainText []byte) string
- func BinToIpv4Strings(shellcode []byte) []string
- func BinToMac(shellcode []byte) string
- func BinToMacStrings(shellcode []byte) []string
- func BuddhaDecode(cipherText string) []byte
- func BuddhaEncode(plainText []byte) string
- func Chacha20Decrypt(data []byte, key []byte) ([]byte, error)
- func Chacha20Encrypt(data []byte, key []byte) ([]byte, error)
- func Decrypt(data []byte, key []byte) []byte
- func DesCBCDecrypt(cipherText, key, iv []byte) ([]byte, error)
- func DesCBCEncrypt(plainText, key, iv []byte) ([]byte, error)
- func DesCFBDecrypt(cipherText, key, iv []byte) ([]byte, error)
- func DesCFBEncrypt(plainText, key, iv []byte) ([]byte, error)
- func EllipticCurveDecrypt(privKey []byte, ciphertext []byte) ([]byte, error)
- func EllipticCurveEncrypt(privKey []byte, plaintext []byte) ([]byte, error)
- func Encrypt(data []byte, key []byte) []byte
- func MorseDecode(input string) ([]byte, error)
- func MorseEncode(input string) (string, error)
- func PokemonDecode(encoded []string) []byte
- func PokemonEncode(data []byte) []string
- func Rc4decrypt(ciphertext, key []byte) ([]byte, error)
- func Rc4encrypt(plainText, key []byte) ([]byte, error)
- func RoarDecode(a string) string
- func RoarEncode(a string) string
- func Rot13(input string) string
- func Rot47(input string) string
- func SgnEncoder(file []byte)
- func Sha1(data []byte) []byte
- func Sha1Hex(data []byte) string
- func Sha256(data []byte) []byte
- func Sha256Hex(data []byte) string
- func Sm4Base64Decrypt(cipherText string, key, iv []byte) ([]byte, error)
- func Sm4Base64Encrypt(plainText, key, iv []byte) (string, error)
- func Sm4CbcDecrypt(cipherText, key, iv []byte) ([]byte, error)
- func Sm4CbcDecryptHex(cipherTextHex, keyHex, ivHex string) ([]byte, error)
- func Sm4CbcEncrypt(plainText, key, iv []byte) ([]byte, error)
- func Sm4CbcEncryptHex(rawData, keyHex, ivHex string) ([]byte, error)
- func XOREncodeDecode(plainText, key []byte) ([]byte, error)
- func XorAesHexBase85Decrypt(cipherText string, key, iv []byte) ([]byte, error)
- func XorAesHexBase85Encrypt(plainText, key, iv []byte) (string, error)
- func XorBase32Decrypt(cipherText string, key []byte) ([]byte, error)
- func XorBase32Encrypt(plainText, key []byte) (string, error)
- func XorBase62Decrypt(cipherText string, key []byte) ([]byte, error)
- func XorBase62Encrypt(plainText, key []byte) (string, error)
- func XorBase64Decrypt(cipherText string, key []byte) ([]byte, error)
- func XorBase64Encrypt(plainText, key []byte) (string, error)
- func XorDesBase85Decrypt(cipherText string, key, iv []byte) ([]byte, error)
- func XorDesBase85Encrypt(plainText, key, iv []byte) (string, error)
- func XorRc4Base85Decrypt(cipherText string, key []byte) ([]byte, error)
- func XorRc4Base85Encrypt(plainText, key []byte) (string, error)
- func XorRc4HexBase85Decrypt(cipherText string, key []byte) ([]byte, error)
- func XorRc4HexBase85Encrypt(plainText, key []byte) (string, error)
- func XorSm4HexBase85Decrypt(cipherText string, key, iv []byte) ([]byte, error)
- func XorSm4HexBase85Encrypt(plainText, key, iv []byte) (string, error)
Constants ¶
const ( Origin = `http://hi.pcmoe.net` Referer = `http://hi.pcmoe.net/buddha.html` BuddhaAPI = `http://hi.pcmoe.net/bear.php` )
Variables ¶
var BuddhaHeader = map[string]string{ "Origin": Origin, "Referer": Referer, "X-Requested-With": "XMLHttpRequest", "X-Token": "203B61D35068", "Content-type": "application/x-www-form-urlencoded", }
Functions ¶
func AESCBCDecrypt ¶
AESCBCDecrypt AES CBC模式解密
func AESCBCEncrypt ¶
AESCBCEncrypt AES CBC模式加密
func AESCFBDecrypt ¶
AESCFBDecrypt AES CFB模式解密
func AESCFBEncrypt ¶
AESCFBEncrypt AES CFB模式加密
func AesBase32Encrypt ¶
func Base16Decode ¶
func Base16Encode ¶
func Base62Decode ¶
func Base62Encode ¶
func Base85Decode ¶
func Base85Encode ¶
func BinToIpv4Strings ¶
func BinToMacStrings ¶
func Chacha20Decrypt ¶
Chacha20Decrypt Decrypt data using given key (32 bytes)
func Chacha20Encrypt ¶
Chacha20Encrypt Encrypt data using given key (32 bytes)
func Decrypt ¶
Decrypt the data with the key. Data is the bytes to be decrypted. Key is the decrypted key. It is the same as the encrypted key.
func DesCBCDecrypt ¶
func DesCBCEncrypt ¶
func DesCFBDecrypt ¶
DesCFBDecrypt 使用DES CFB模式进行解密, 需要8位的key和iv
func DesCFBEncrypt ¶
DesCFBEncrypt 使用DES CFB模式进行加密, 需要8位的key和iv
func EllipticCurveDecrypt ¶
func EllipticCurveEncrypt ¶
func Encrypt ¶
Encrypt the data with key. Data is the bytes to be encrypted. Key is the encrypted key. It is the same as the decrypt key.
func MorseDecode ¶
func MorseEncode ¶
func PokemonDecode ¶
PokemonDecode 解码函数:将 []string 解码为 []byte
func PokemonEncode ¶
PokemonEncode 编码函数:将 []byte 编码为 []string
func Rc4decrypt ¶
func Rc4encrypt ¶
func SgnEncoder ¶
func SgnEncoder(file []byte)
func Sm4Base64Decrypt ¶
Sm4Base64Decrypt SM4解密要求Key和IV的长度为16
func Sm4Base64Encrypt ¶
Sm4Base64Encrypt SM4加密要求Key和IV的长度为16
func Sm4CbcDecrypt ¶
func Sm4CbcDecryptHex ¶
func Sm4CbcEncrypt ¶
func Sm4CbcEncryptHex ¶
func XOREncodeDecode ¶
func XorAesHexBase85Decrypt ¶
func XorAesHexBase85Encrypt ¶
func XorBase32Encrypt ¶
func XorBase62Encrypt ¶
func XorBase64Encrypt ¶
func XorDesBase85Decrypt ¶
XorDesBase85Decrypt Des加密要求Key和IV的长度为8
func XorDesBase85Encrypt ¶
XorDesBase85Encrypt Des加密要求Key和IV的长度为8
func XorRc4Base85Encrypt ¶
func XorRc4HexBase85Decrypt ¶
func XorRc4HexBase85Encrypt ¶
func XorSm4HexBase85Decrypt ¶
func XorSm4HexBase85Encrypt ¶
Types ¶
This section is empty.
Source Files
¶
- Buddha.go
- aes.go
- aesbase32.go
- base16.go
- base62.go
- base85.go
- chacha20.go
- des.go
- elliptic_curve.go
- hash.go
- ipv4.go
- mac.go
- morse.go
- pokemon.go
- rc4.go
- roar.go
- rot13.go
- rot47.go
- sgn.go
- sm4.go
- sm4base64.go
- sm4hex.go
- xor.go
- xoraeshexbase85.go
- xorbase32.go
- xorbase62.go
- xorbase64.go
- xordesbase85.go
- xorrc4base85.go
- xorrc4hexbase85.go
- xorsm4hexbase85.go
- xxtea.go