cryptogo

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESDecryptCBC

func AESDecryptCBC(encodedData, key string, IV ...string) string

func AESEncryptCBC

func AESEncryptCBC(message, key string, IV ...string) string

func HmacMD5

func HmacMD5(s, key string) string

func HmacSHA1

func HmacSHA1(s, key string) string

func HmacSHA256

func HmacSHA256(s, key string) string

func HmacSHA512

func HmacSHA512(s, key string) string

func MD5Sum

func MD5Sum(s string) string

func PKCS7Padding

func PKCS7Padding(ciphertext []byte, blockSize int) []byte

func PKCS7UnPadding

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

func SHA1Sum

func SHA1Sum(s string) string

func SHA256Sum

func SHA256Sum(s string) string

func SHA512Sum

func SHA512Sum(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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