From 4335a52b7f5438be682caca81cc9690af4d17989 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=B4=8D=E1=B4=8F=E1=B4=8F=C9=B4D4=CA=80=E1=B4=8B?= Date: Sat, 11 Jul 2020 13:33:30 +0800 Subject: [PATCH] add pkcs5 uppadding Closes #15 --- core/common.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/common.go b/core/common.go index a1f9e2a..3a617b1 100644 --- a/core/common.go +++ b/core/common.go @@ -504,8 +504,8 @@ func parseFirefoxKey4() { } FullData.LoginDataSlice = append(FullData.LoginDataSlice, loginData{ LoginUrl: v.LoginUrl, - UserName: string(u), - Password: string(p), + UserName: string(utils.PKCS5UnPadding(u)), + Password: string(utils.PKCS5UnPadding(p)), CreateDate: v.CreateDate, }) }