tools

package
v0.0.0-...-e4e76df Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64Decode

func Base64Decode(src []byte) ([]byte, error)

func Base64Encode

func Base64Encode(src []byte) []byte

func Md5Encrypt

func Md5Encrypt(data string) string

func ReadKeyFromFile

func ReadKeyFromFile(filePath string) (string, error)

func RsaDecrypt

func RsaDecrypt(ciphertext []byte, privateKey string) ([]byte, error)

func RsaEncrypt

func RsaEncrypt(origData []byte, publicKey string) ([]byte, error)

func Sha256Encrypt

func Sha256Encrypt(data string, salt 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