我忘了我的GPG密钥密码。
我知道我的计算机正在存储它,因为我用它解密字符串,而没有密码,例如:
$ gpg --decrypt -r me@example.com ~/.password-store/gmail.gpg
You need a passphrase to unlock the secret key for
user: "Example <me@example.com>"
2048-bit RSA key, ID 02BFF027, created 2014-10-04 (main key ID 410A4C4A)
gpg: NOTE: secret
我从中提取了ASP的代码,并将它的所有密码编码到RC4中,编码功能如下:
function rc4(byref thestr, byref thekey)
dim asciiarray(255)
dim keyarray(255)
if isnull(thestr) then exit function
if len(thekey)=0 then exit function
if len(thestr)=0 then thestr=" "
if len(thestr)=0 then exit function
zxlen=len(thekey)