Versions in this module Expand all Collapse all v1 v1.0.2 Mar 29, 2021 v1.0.1 Mar 18, 2021 Changes in this version + 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