Documentation ¶
Index ¶
- func AddOrCheckMainPassword(db *gorm.DB) string
- func AddOrCreateConfigDir() error
- func Decrypt(key, data []byte) ([]byte, error)
- func DeriveKey(password, salt []byte) ([]byte, []byte, error)
- func Encrypt(key, data []byte) ([]byte, error)
- func GetInfo(db *gorm.DB) *models.User
- func GetNormalString(promptText string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddOrCheckMainPassword ¶
AddOrCheckMainPassword add a main password to the application
func AddOrCreateConfigDir ¶
func AddOrCreateConfigDir() error
AddOrCreateConfigDir creates the .glitzy folder in the home directory
func GetNormalString ¶
GetNormalString input normal text from terminal
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.