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

One text encrypted with multiple keys. Is it secure?

Let's say i have one plaintext and i encrypt it with different keys (each on its own). Is it possible to find the plaintext from these encrypted ciphers or how hard is it to resample the text? Does this even make sense, especially in respect to…
0
votes
1 answer

Verifying a signature in java using a certificates public key

I'm looking to convert some C# code to the equivalent in Java. The C# code takes some string content, and a signature (generated using the private key, on a seperate machine) and combined with the public key it verifies the signature matches,…
Bittercoder
  • 11,753
  • 10
  • 58
  • 76
0
votes
2 answers

Asymmetric encryption where the receiving party can decrypt - but must be completely unable to encrypt the data

What I have is a client server scenario, and a payload (x). The server generates x and encrypts it : enc(x) enc(x) is sent to the client The client decrypts the data to get x However, the restrictions I must enforce are that: The encryption and…
PhonicUK
  • 13,486
  • 4
  • 43
  • 62
0
votes
1 answer

How to specify message body encryption method for Rampart?

I am working with Axis2 1.6.1 + Rampart 1.6.1 on the server side of a web service. I've been asked to employ RSA 1.5 for message body encryption. From what I can tell (by inspecting captured SOAP messages), the default algorithm to encrypt the…
Robert Dodier
  • 16,905
  • 2
  • 31
  • 48
0
votes
1 answer

Should I secure/hide prime and base numbers for Diffie-Hellman?

As we know DH algorithm based upon 2 large prime numbers, which are used to be called as prime and base I am writing app which implements DH key exchange algorithm. From security point of view should I take care for securing prime and base numbers?…
0
votes
1 answer

RsaProtectedConfigurationProvider implementation vs RSACryptoServiceProvider c#

If RSACryptoServiceProvider cannot Encrypt data larger than it's KeySize, how RsaProtectedConfigurationProvider is implemented in the .Net framework? I am working on a utility that is going to be used to encrypt/decrypt some sensitive information.…
gmaran23
  • 2,118
  • 2
  • 17
  • 18
0
votes
3 answers

Does two symmetric encryption algorithms return the same result in two different OS and Programming Framework?

Simply in .Net I encrypt the the Id By DES a Symmetric Encryption algorithm and specific Key in .NET . I'm wondering could my partner in Java decrypt just by knowing the name of algorithm and the key ? Thanks
Mostafa
  • 3,002
  • 10
  • 52
  • 79
0
votes
0 answers

Signing data with javascript why it doesn't work with these keys?

I tested the js tool http://shop-js.sourceforge.net/crypto2.htm mentionned here Sign data using private key on client-side (javascript) with a pfx certificate I self created for test I converted to pem but it doesn't work why ? Seems its length is…
user310291
  • 36,946
  • 82
  • 271
  • 487
0
votes
1 answer

IPhone Decryption with private key -Data Encrypted in Java

Can anyone help with the code how to decrypt with private key ,As in server side they are using OAEP encryption method .I tried decrypting using private key but the decrypted text is Null,I am getting the Error code as -9809 as decryption code…
012346
  • 199
  • 1
  • 4
  • 23
0
votes
1 answer

How to protect a signing key?

I have a need to verify the integrity of a settings file. The file is an xml document. I understand you can use readily-available functions as discussed in this stackoverflow post. I am having trouble understanding how to protect the signing key…
David W
  • 487
  • 2
  • 5
  • 12
0
votes
1 answer

Java encryption issue with data type conversion

I have web services implemented that comunicate between client and server with strings. The problem I'm getting is with the conversion of the encripted byte array to string since I can't convert it back to the original content on server…
d0pe
  • 573
  • 4
  • 9
  • 23
0
votes
1 answer

Encrypting Certificate

I am getting issue on Microsoft internet explorer certificate while encrypt with private key and decrypt with public key having issue 1) Encrypt working file public String encryption(String inputData, String key, String certificate) // Certificate…
PVR
  • 2,534
  • 18
  • 38
-1
votes
1 answer

With HTTPS, when a server sends data to a browser, how is it encrypted?

With HTTPS, when a browser sends data to a website, it's asymmetrically encrypted with the public key, and decrypted with the websites private key. I'm guessing it's the service provider that actually does the decoding, so Route 53 if you're using…
-1
votes
1 answer

What is the "limit" to the variety of strings that can be encrypted/decrypted using RSACryptoServiceProvider (C#)?

Following is my implementation of Rsa encryption and decryption methods, to do it I based myself on microsoft…
-1
votes
1 answer

How to encrypt a text

I need to implement a simple text encryption in C++ without using any existing framworks. This is purely for educational purpose to learn the in-and-outs and to learn the way to implement such a system. I am not planning to implement this in…
sarat
  • 10,512
  • 7
  • 43
  • 74