Documentation
¶
Index ¶
Constants ¶
View Source
const KeysDir string = "./services/pwencrypter/keys"
KeysDir server key directory
Variables ¶
This section is empty.
Functions ¶
func CheckError ¶
func CheckError(err error)
CheckError check for errors then log error if err is not nil
func DecryptUserKey ¶
DecryptUserKey decrypt users key
func EncryptUserKey ¶
EncryptUserKey encrypt users key
func GenerateRandomPassword ¶
func GenerateRandomPassword() string
GenerateRandomPassword for The Server for Generating an encryption key
func GenerateServerKey ¶
func GenerateServerKey() bool
GenerateServerKey generate server's encryption key save the Generated Key into server encrytion key folder
func LookForServerKey ¶
func LookForServerKey() bool
LookForServerKey Search for server encryption key if found return true otherwise return false
Types ¶
This section is empty.