refactor: format code with interface

This commit is contained in:
ᴍᴏᴏɴD4ʀᴋ
2020-07-31 15:29:07 +08:00
parent 6ac92acb1a
commit 5936e17e26
5 changed files with 13 additions and 11 deletions
+1 -1
View File
@@ -13,7 +13,6 @@ var (
errSecurityKeyIsEmpty = errors.New("input [security find-generic-password -wa 'Chrome'] in terminal")
errPasswordIsEmpty = errors.New("password is empty")
errDecryptFailed = errors.New("decrypt failed, password is empty")
errDbusSecretIsEmpty = errors.New("dbus secret key is empty")
)
func aes128CBCDecrypt(key, iv, encryptPass []byte) ([]byte, error) {
@@ -33,6 +32,7 @@ func PKCS5UnPadding(src []byte) []byte {
unpad := int(src[length-1])
return src[:(length - unpad)]
}
func Des3Decrypt(key, iv []byte, src []byte) ([]byte, error) {
block, err := des.NewTripleDESCipher(key)
if err != nil {