securityx

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2022 License: MIT Imports: 18 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesCbcDecrypt

func AesCbcDecrypt(str string, keyBuf, ivBuf []byte) (ret string, err error)

func AesCbcEncrypt

func AesCbcEncrypt(str string, keyBuf []byte, paddingMode ...string) (ret string, err error)

func Base64Decode

func Base64Decode(str string) string

func Base64Encode

func Base64Encode(str string) string

func HmacSha1

func HmacSha1(str string, keyBuf []byte) (string, error)

func HmacSha256

func HmacSha256(str string, keyBuf []byte) (string, error)

func HmacSha512

func HmacSha512(str string, keyBuf []byte) (string, error)

func Md5

func Md5(str string, salt ...string) string

func RsaDecrypt

func RsaDecrypt(str string, privateKeyBuf []byte) (ret string, err error)

func RsaEncrypt

func RsaEncrypt(str string, publicKeyBuf []byte) (ret string, err error)

func Sha1

func Sha1(str string) (string, error)

func Sha256

func Sha256(str string) (string, error)

func Sha512

func Sha512(str string) (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