format filename

This commit is contained in:
ᴍᴏᴏɴD4ʀᴋ
2020-06-28 17:25:38 +08:00
parent ecc1665912
commit e9729f755d
4 changed files with 2 additions and 35 deletions
-20
View File
@@ -84,26 +84,6 @@ func InitKey(key string) error {
}
}
//func GetDBPath(dir string, dbName ...string) (dbFile []string) {
// var dbPath []string
// chromeDBPath := os.Getenv("USERPROFILE") + dir
// for _, v := range dbName {
// dbPath = append(dbPath, chromeDBPath+v)
// }
// for _, v := range dbPath {
// s, err := filepath.Glob(v)
// if err != nil && len(s) == 0 {
// continue
// }
// if len(s) > 0 {
// log.Debugf("Find %s File Success", v)
// log.Debugf("%s file location is %s", v, s[0])
// dbFile = append(dbFile, s[0])
// }
// }
// return dbFile
//}
func DecryptChromePass(encryptPass []byte) (string, error) {
if len(encryptPass) > 15 {
// remove prefix 'v10'