mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-10-13 03:37:12 +02:00
fix: windows compile failure
This commit is contained in:
1 parent
b060975fb7
commit
22eccce30d
2 files changed
+7
-10
No files matched your search
@@ -175,3 +175,9 @@ func paddingZero(s []byte, l int) []byte {
|
|||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func PKCS5UnPadding(src []byte) []byte {
|
||||||
|
length := len(src)
|
||||||
|
unpadding := int(src[length-1])
|
||||||
|
return src[:(length - unpadding)]
|
||||||
|
}
|
||||||
+1
-10
@@ -110,14 +110,5 @@ func aes128CBCDecrypt(encryptPass []byte) (string, error) {
|
|||||||
return string(dst), nil
|
return string(dst), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func PKCS5UnPadding(src []byte) []byte {
|
|
||||||
length := len(src)
|
|
||||||
unpadding := int(src[length-1])
|
|
||||||
return src[:(length - unpadding)]
|
|
||||||
}
|
|
||||||
|
|
||||||
func PKCS7UnPadding(origData []byte)[]byte{
|
|
||||||
length := len(origData)
|
|
||||||
unpadding := int(origData[length-1])
|
|
||||||
return origData[:length-unpadding]
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user