Documentation ¶
Index ¶
- Constants
- func CheckError(err error)
- func CredReveal(username, password, decPW string, enc bool) (string, error)
- func DecryptUserKey(userkey, key []byte) []byte
- func EncryptUserKey(userkey, key []byte) []byte
- func GenerateRandomPassword() string
- func GenerateServerKey() bool
- func SearchForKeys(server, users bool) (bool, error)
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 ¶
CredReveal Encrypt or Decrypt user's passwords
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 SearchForKeys ¶
SearchForKeys search for server's key and also user's keys
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.