crypto

package
v0.0.0-...-6065391 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRSASSHKeyPair

func GenerateRSASSHKeyPair(size int) (string, string, error)

GenerateRSASSHKeyPair Generates a new rsa key pair the size of the arg, and returns the pub and priv key as strings

func GetMD5FromBytes

func GetMD5FromBytes(data []byte) string

GetMD5FromBytes takes a byte array and returns the md5 string of it

func GetMD5FromString

func GetMD5FromString(data string) string

GetMD5FromString takes a string and returns the md5 string of it

func GetSHA1FromBytes

func GetSHA1FromBytes(data []byte) string

GetSHA1FromBytes takes a byte array and returns the md5 string of it

func GetSHA1FromString

func GetSHA1FromString(data string) string

GetSHA1FromString takes a byte array and returns the md5 string of it

func GetSHA256FromBytes

func GetSHA256FromBytes(data []byte) string

GetSHA256FromBytes takes a byte array and returns the md5 string of it

func GetSHA256FromString

func GetSHA256FromString(data string) string

GetSHA256FromString takes a byte array and returns the md5 string of it

Types

This section is empty.

Jump to

Keyboard shortcuts

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