key

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64Decode

func Base64Decode(str string) string

Base64Decode decodes a base64 encoded string

func Base64Encode

func Base64Encode(str string) string

func Decrypt

func Decrypt(encryptedMessage string, sk string) string

func DecryptByte

func DecryptByte(encryptedMessage []byte, sk []byte) string

func Encrypt

func Encrypt(message string, ak string) string

func EncryptByte

func EncryptByte(message []byte, ak []byte) []byte

func GenerateKeyPair

func GenerateKeyPair() (public_key, private_key string)

func GenerateKeyPairByte

func GenerateKeyPairByte() ([]byte, []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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