docs: add key function documents

This commit is contained in:
moond4rk
2020-11-10 14:11:16 +08:00
committed by ᴍᴏᴏɴD4ʀᴋ
parent b5ec1e89e6
commit 24f2ceb6b4
8 changed files with 69 additions and 72 deletions
+2
View File
@@ -6,6 +6,7 @@ import (
"crypto/des"
"encoding/asn1"
"errors"
"hack-browser-data/log"
)
@@ -33,6 +34,7 @@ func PKCS5UnPadding(src []byte) []byte {
return src[:(length - unpad)]
}
// Des3Decrypt use for decrypt firefox PBE
func Des3Decrypt(key, iv []byte, src []byte) ([]byte, error) {
block, err := des.NewTripleDESCipher(key)
if err != nil {