File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,10 +14,9 @@ import (
1414)
1515
1616var (
17- errSecurityKeyIsEmpty = errors .New ("input [security find-generic-password -wa 'Chrome'] in terminal" )
18- errPasswordIsEmpty = errors .New ("password is empty" )
19- errDecodeASN1Failed = errors .New ("decode ASN1 data failed" )
20- errEncryptedLength = errors .New ("length of encrypted password less than block size" )
17+ errPasswordIsEmpty = errors .New ("password is empty" )
18+ errDecodeASN1Failed = errors .New ("decode ASN1 data failed" )
19+ errEncryptedLength = errors .New ("length of encrypted password less than block size" )
2120)
2221
2322type ASN1PBE interface {
Original file line number Diff line number Diff line change 11package decrypter
22
3+ var (
4+ errSecurityKeyIsEmpty = errors .New ("input [security find-generic-password -wa 'Chrome'] in terminal" )
5+ )
6+
37func Chromium (key , encryptPass []byte ) ([]byte , error ) {
48 if len (encryptPass ) <= 3 {
59 return nil , errPasswordIsEmpty
You can’t perform that action at this time.
0 commit comments