serverenc

package
v0.0.0-...-c12dc61 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: MIT Imports: 5 Imported by: 0

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

func DecryptUserKey(userkey, key []byte) []byte

DecryptUserKey decrypt users key

func EncryptUserKey

func EncryptUserKey(userkey, key []byte) []byte

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.

Jump to

Keyboard shortcuts

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