Documentation ¶
Index ¶
- func BytesToPublicKey(pub string) (*rsa.PublicKey, error)
- func ComputeHmac1(message string, secret string) string
- func ComputeHmac256(message string, secret string) string
- func CreateEncryptKey(size int32) string
- func DecryptAES(cypherEncoded string, uniqueKey string, ivKey string) ([]byte, error)
- func EncryptAES(plainText string, uniqueKey string, ivKey string) (string, error)
- func EncryptWithPublicKey(msg []byte, pub *rsa.PublicKey) (string, error)
- func Sha1Hash(data string) string
- func Sha256Hash(data string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToPublicKey ¶
BytesToPublicKey convert Miniserver formatted PEM to rsa public key object
func ComputeHmac1 ¶
func ComputeHmac256 ¶
func CreateEncryptKey ¶
func DecryptAES ¶
func EncryptWithPublicKey ¶
func Sha256Hash ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.