Questions tagged [encryption-asymmetric]

A type of encryption which uses one key to encrypt a message and another to decrypt the message.

In asymmetric encryption, also referred as public-key cryptography, there are two related keys--a key pair. A public key is made freely available to anyone who might want to send you a message. A second, private key is kept secret, so that only you know it.

594 questions
0
votes
1 answer

Invalid Cipher bytes in Encryption method in Android using RSA

We are facing an issue while trying to Encrypt data in Android and Decrypt it in a WCF Service. The Android code to encrypt data is as follows: try{ String strModulus =…
0
votes
1 answer

The data to be decrypted exceeds the maximum for this modulus of 128 bytes while encrypting data in Android and Decrypting in WCF Web Service

I am an Android Developer. The task at hand is to encrypt data in my Android Application using the RSA algorithm via the Public Key modulus and Exponent provided to me and then send it over the network via JSON String to a .Net Web Service. This Web…
Bot
  • 622
  • 2
  • 10
  • 21
0
votes
1 answer

Check if a client did something within a specific timespan

I'm working on an app project where I need to verify if a client/user did something within a specific timespan (e.g. responded within 10 seconds). The problem is that - as it is an app - the client could have a very slow connection or even a…
Sebb
  • 871
  • 6
  • 16
0
votes
1 answer

Android Encryption & Decryption algorithm for large files

I am using AES algorithm in Android for encryption and decryption. It is okay for small files but when I tried to decrypt a file approximately 70 mb I am waiting 2-3 minutes. Which algorithm should i use?
0
votes
1 answer

RSA java code not working for larger text input?

I found this rsa code on net. I have problem with code, it is not working as expected for the larger text. However it decrypts fine for a few lines text. Can anyone point out the mistake it the code or logic please. Thanks import…
0
votes
0 answers

How to read RSA private key from file using a GPLv2 compatible library?

I need to do some RSA decryption and my private key is stored in a file. I am using C++. At first I used OpenSSL, and it worked smoothly, but then the licensing problem appeared, as I want my code to be GPLv2 compatible. Now I am trying to use…
simm
  • 33
  • 4
0
votes
0 answers

correct implementation of asymmetric cryptography

I have mobile apps that make requests to server. I am thinking of using asymmetric cryptography where the private key resides in the server. The public key will be distributed to all users. Meaning all users will use the same public key for…
twb
  • 1,248
  • 4
  • 18
  • 31
0
votes
1 answer

HOW to Sign data in C# in wp8

I am developing wp8 app. I send public key to server in 1st login request.In response server sends token (its simple base64 string with around 1200-1300 characters) which I need to sign with private key and send back to server in next request.Now…
Vaibhav
  • 359
  • 3
  • 8
  • 17
0
votes
2 answers

signature verification process in java security

I want to send a original_message between two person. let say Alice and Bob, and I want to know if these steps are correct for verification of the signature or not Alice hash the original_message with her PrivateKey -> h(m) Alice cipher the hashed…
0
votes
1 answer

How to calculate the public key (E) of an RSA private key (D)?

I want to create my own RSA Key Pair (Actually I want create pair key with my own Private Key) for some reason but I realized that I should use the keys that RSA Class generates for me cause the public (e) and private (d) keys are mathematically…
0
votes
1 answer

Time & device limited licensing

I need to add a license to my application to limit time & device that my app. can be used. So I thought to store HDD and/or NIC serial numbers and expire date in my license file. Now how can I protect my license in a way that: My application be…
Ariyan
  • 14,760
  • 31
  • 112
  • 175
0
votes
0 answers

How can I add encryption to Java NIO?

I'm supposed to add asymmetric encryption to an application with Client <-> Server architecture using Java NIO. I have read somewhere that I should go with SSL but I would have problems adapting the NIO Server to it. Any thoughts and recommendations…
pelican_george
  • 961
  • 2
  • 13
  • 33
0
votes
2 answers

Convert a file to encrypted file and decrypt it on server (Using Public key encryption)

I am trying to encrypt/decrypt a file using RSA. But I can't see the data inside the file. Here is the Code : // To encrypt a file private static void encrypt(InputStream input, OutputStream output, PublicKey key) throws…
Jeet
  • 761
  • 3
  • 10
  • 27
0
votes
2 answers

Decryption-Only method in C#

I'm looking for a secured way to implement a license file for my application, with flags and features. I read about Asymmetric key mechanism in C#, but the RSA purpose is little opposite from what I need. I want to generate a license file:…
RoeeK
  • 1,112
  • 12
  • 23
0
votes
1 answer

SQLCipher with asymmetric encryption

Is it possible to encrypt data with SQLCipher using a private key? The intention is to store some sensitive data encrypted on the device that can be decrypted for debugging purposes. Unfortunately the SQLCipher documentation just mentions…
Quxflux
  • 3,133
  • 2
  • 26
  • 46