You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-----BEGIN PUBLIC KEY-----
MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMUVTgdp73c0YeU5fItHsNiNINsF6zJj
ZSCjIvOxBoBrtxzwL2Pe4IMDjX2m+YShHNdikcIVkB9kIQg6u77z4m8CAwEAAQ==
-----END PUBLIC KEY-----
error:0407006A:rsa routines:RSA_padding_check_PKCS1_type_1:block type is not 01
error:04067072:rsa routines:RSA_EAY_PUBLIC_DECRYPT:padding check failed
fix:
//fill last #10
if (re_encode_session[Length(re_encode_session)-1] <> #10) then
begin
re_encode_session:=re_encode_session+ char(10);
end;
//Rsa public decrypt
bRSAData.CryptedData := re_encode_session;
fRSAOpenSSL.PublicDecrypt(bRSAData);
The text was updated successfully, but these errors were encountered:
private key (512 bit);
publci key:
php server user privatekey encrypt:
No.1
HudnLQF7vK0g3IBlI/IHDqK6RqGzBqsfeRbh6moxP+k+I6ZVARIxcnXHHMBxQ1oXY/omdknhRAhHWEdrl/D65g==
No.2
tfcd+/WuXwwP9nvO25T6iAORPYqtD0on/HipLciS+7HDdxXxL3KMHdDlUWxKOpXy5PQg6Pwt/cFopxcLBDSf/A==
delphi publickey decrypt error:
fix:
The text was updated successfully, but these errors were encountered: