encrypt

package
v0.0.0-...-efd9455 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecrypt

func AesDecrypt(decodeStr string, aesKey string, aesIv string) ([]byte, error)

func AesDecryptKeyIv

func AesDecryptKeyIv(decodeStr, key, iv string) ([]byte, error)

func AesEncrypt

func AesEncrypt(encodeStr string, aesKey string, aesIv string) (string, error)

func AesEncryptKeyIv

func AesEncryptKeyIv(encodeStr, key, iv string) (string, error)

func BytesToPubKey

func BytesToPubKey(key []byte) (interface{}, error)

func CiphertextLength

func CiphertextLength(n int) int

func DeCodeInt64

func DeCodeInt64(code string, salt string) (int64, error)

func EnCodeInt64

func EnCodeInt64(id int64, salt string) (string, error)

func Md5

func Md5(s string) string

func PubKeyToBytes

func PubKeyToBytes(key *rsa.PublicKey) []byte

func RSAKeyGenToBuf

func RSAKeyGenToBuf(bits int) ([]byte, []byte, error)

func RSAKeyGenToKey

func RSAKeyGenToKey(bits int) (*rsa.PrivateKey, error)

func RsaPrivateKeyDecrypt

func RsaPrivateKeyDecrypt(cipher []byte, key []byte) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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