utils

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePasswords

func ComparePasswords(hashedPwd string, plainPwd []byte) (bool, error)

ComparePasswords Compare password

func Decrypt

func Decrypt(encryptedString string, keyString string) (decryptedString string)

Decrypt returns decrypted string

func Encrypt

func Encrypt(stringToEncrypt string, keyString string) (encryptedString string)

Encrypt returns encrypted string

func HashAndSalt

func HashAndSalt(pwd []byte) (string, error)

HashAndSalt encrypts password

func RandomString

func RandomString(leng int64) string

RandomString string

func Srand

func Srand(size int) int64

Srand random numbers

Types

This section is empty.

Jump to

Keyboard shortcuts

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