encryption

package
v0.0.0-...-1f5092a Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeHexRSAKeyString

func DecodeHexRSAKeyString(privateKey string, pubKeystring string) ([]byte, []byte)

func Encode

func Encode(dst, src []byte) int

func EncodeToString

func EncodeToString(src []byte) string

func EncodedLen

func EncodedLen(n int) int

func EncryptPassword

func EncryptPassword(password string, salt string) []byte

func GenerateRSAKeyString

func GenerateRSAKeyString() (string, string)

func IsSamePassword

func IsSamePassword(passwordHash []byte, passwordPlain string) bool

func ParsePubKeyFromString

func ParsePubKeyFromString(pubKey string) *rsa.PublicKey

func PubKeyToJWKKey

func PubKeyToJWKKey(pub *rsa.PublicKey) jwk.Key

Types

This section is empty.

Jump to

Keyboard shortcuts

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