crypto

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodePublicKey

func DecodePublicKey(raw string) (encryption_protocol string, pubkey []byte, err error)

func EncodePublicKey

func EncodePublicKey(pubkey []byte, encryption_protocol string) (ans string, err error)

func Encrypt_cmd

func Encrypt_cmd(cmd *utils.RemoteControlCmd, password string, other_pubkey []byte, encryption_protocol string) (encrypted_cmd utils.EncryptedRemoteControlCmd, err error)

func Encrypt_data

func Encrypt_data(data []byte, other_pubkey []byte, encryption_protocol string) (ans []byte, err error)

func KeyPair

func KeyPair(encryption_protocol string) (private_key []byte, public_key []byte, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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