Questions tagged as 'rsa'

1
answer

PublicKey for String

I have a server that uses RSA and an Android app. I want the server to pass its PublicKey to the Android application. I'm trying to pass PublicKey as a string, but when I send something encrypted with this key to the server and try to decipher i...
asked by 10.04.2018 / 13:31
0
answers

SHA256 standard eSocial Vs. Framework .NET 4.6

Good morning, I have an application developed in C #, installed on several clients. I've developed the code snippet below for signing on SHA256 and it works great with the latest .NET FRAMEWORKS: class Assinatura { public string Assi...
asked by 15.08.2018 / 16:12
0
answers

Encrypt string for RSA using publickey_mod

How can I encrypt a "text" in RSA using a publickey_mod? This is the return of the site that provides publickey_mod. > {"success":true,"publickey_mod":"b5cd08c28a849de9077e6bd4863dad93a0fea46c3f831910c42b9f6d4fc1c8075f6000292b2b6d73bd813e8e...
asked by 29.07.2018 / 02:13
0
answers

Logging in with Jsoup

I'm trying to log in with JSoup on this page here, however I have some issues with doing this. Hereisthehtmlpageurlistheonehere( link ) <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/><...
asked by 15.07.2018 / 04:55
2
answers

C - OpenSSL (d2i_RSA_PUBKEY, d2i_RSAPrivateKey and d2i_RSAPublicKey)

I created an RSA private key through the following command: openssl genrsa -out keypair.pem 2048 I need these keys to be stored in DER (PKCS # 1) format. So, I converted this private key, which is in PEM format, into two files in DER forma...
asked by 22.04.2016 / 20:34
1
answer

RSACryptoServiceProvider, SSLStream (OpenSSL) - Encrypt, Decrypt

After server authentication from the certificate generated with openssl. sslStream.AuthenticateAsClient(serverName); Home The encryption of the data by the client is done as follows: string messsage = "teste123.<EOF>";...
asked by 23.06.2014 / 15:00
0
answers

Generate PrivateKey with library java.security

I want to generate a private key in the java standard for the PrivateKey format using RSA, but always in the invalid format. I have already tried several keys with openssl, generating by java and I can not find a solution. Follow the code to cre...
asked by 26.12.2018 / 01:09