serverenc

package
v0.0.0-...-17ddb13 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: MIT Imports: 8 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 CredReveal

func CredReveal(username, password, decPW string, enc bool) (string, error)

CredReveal Encrypt or Decrypt user's passwords

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 SearchForKeys

func SearchForKeys(server, users bool) (bool, error)

SearchForKeys search for server's key and also user's keys

Types

This section is empty.

Jump to

Keyboard shortcuts

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