Questions tagged [key-pair]

Public-key cryptography, or asymmetric cryptography, is any cryptographic system that uses pairs of keys: public keys that may be disseminated widely paired with private keys which are known only to the owner.

Public-key cryptography, or asymmetric cryptography, is any cryptographic system that uses pairs of keys: public keys that may be disseminated widely paired with private keys which are known only to the owner. There are two functions that can be achieved: using a public key to authenticate that a message originated with a holder of the paired private key; or encrypting a message with a public key to ensure that only the holder of the paired private key can decrypt it.

In a public-key encryption system, any person can encrypt a message using the public key of the receiver, but such a message can be decrypted only with the receiver's private key. For this to work it must be computationally easy for a user to generate a public and private key-pair to be used for encryption and decryption. The strength of a public-key cryptography system relies on the degree of difficulty (computational impracticality) for a properly generated private key to be determined from its corresponding public key. Security then depends only on keeping the private key private, and the public key may be published without compromising security.


Source: Wikipedia

287 questions
0
votes
1 answer

Created an ec-2 launch wordpress instance without key pair

I'm pretty new to using amazon web services. I created a new launch instance using WordPress powered by Bitnami and made sure to create a key pair. The key pair I made shows up under the "Key Pair" category however it is not linked to my launch…
torylor
  • 107
  • 1
  • 4
  • 11
0
votes
2 answers

AWS EC2 Public Key

I am a first time AWS user, and have been following this tutorial to set up with Ubuntu. I've generated my keys, saved to my computer, and now I'm at a screen that looks like this: and the next steps is "put in your key"... I have been searching…
gwalshington
  • 1,418
  • 2
  • 30
  • 60
0
votes
1 answer

Issue in generating private key

Private key generation public PrivateKey getStoredPrivateKey(String filePath) { PrivateKey privateKey = null; byte[] keydata = getKeyData(filePath); PKCS8EncodedKeySpec encodedPrivateKey = new PKCS8EncodedKeySpec(keydata); …
Mudit
  • 199
  • 2
  • 21
0
votes
1 answer

Generate private key & public key in my case

I need to create a function which could always generate the same private key/public key every time it is called. Here is my function code I created: public void generateTheUniqueKeys() { KeyPairGenerator keyGenerator =…
Leem.fin
  • 40,781
  • 83
  • 202
  • 354
0
votes
1 answer

Create a instance of KeyPairGeneratorSpec

I need to create an instance of android KeyPairGeneratorSpec, it used to be possible by using this builder class, but it is deprecated in API 23. Then, what is the right way to create it now??? In general, I need to create a KeyPairGeneratorSpec…
Leem.fin
  • 40,781
  • 83
  • 202
  • 354
0
votes
2 answers

Restricting access to users with keypair: The .pem conundrum

Here's my issue I have an ec-2 instance on AWS running Ubuntu Server. During the initial launch of the instance, I generated the key-pair by going to AWS console --> Key Pairs --> Create key pair. It generated a key abcxxxx.pem and I have saved it.…
am3
  • 681
  • 2
  • 12
  • 30
0
votes
1 answer

Can I store a pair of keys on iOS secure element?

I would like to know if I can use the iPhone's secure element to store a pair of keys. I need to store them in the safest emplacement, and I can't think of a better one than the secure element.
0
votes
0 answers

Can't connect to an instance on AWS EC2 with a new key pair (I lost the old one)

I lost the private key of my original instance on AWS EC2, and I expend 2.5 days looking for a solution, in vain. Following the instructions of AWS help... I created another key pair, launched a new instance with a new volume and achieved a SSH…
Saulosch
  • 41
  • 7
0
votes
2 answers

Java check for duplicates into bidimensional map

I want to know how to check for duplicates into bidimensional map. The issue is about this sample code Pair pair1 = new Pair(); pair1.First = 1; pair1.Second = "A"; Pair
Fseee
  • 2,476
  • 9
  • 40
  • 63
0
votes
1 answer

What is the openssl equivalent of using java's KeyPairGenerator?

Firstly I tried to ask this on security -- I got some upvotes but it seems it has had no answer for a week now. I understand that this is openssl related, however it stems from using a java KeyPairGenerator object so I feel it may be valid for stack…
void.massive
  • 115
  • 2
  • 6
0
votes
0 answers

can't import .p12 file into MS Certificate Store

I have the following test code to create test PKCS#12 keystore: X509Certificate[] chain = new X509Certificate[1]; long currentTime = new Date().getTime(); Date firstDate = new Date(currentTime - 24 * 60 * 60 * 1000); long validity = (long) 30 *…
user1563721
  • 1,373
  • 3
  • 28
  • 46
0
votes
1 answer

Remove key pair from running EC2 instance

I lost my .pem file due to which I am not able to login to my ec2 instance. Luckily I had my machine key added to the auth_keys file, so I am able to login using it. I removed the master pub key from the auth_keys file and restarted sshd service.…
0
votes
2 answers

PROLOG: Keep list in recursion

So, I've spent a lot of my time trying to figure this out without almost no progress. Hope you could help me. The goal is, to take a list like this(lets call it baselist): [[[feesc,11],[podshare,11]],[[feesc,11]],[]]. And make it become this:…
0
votes
3 answers

Counting pairs in R

I have a dataset of 3 columns with Column 1 being ID(NOT UNIQUE) AND COLUMNS 2 AND 3 being a positive and negative value associated with the id respectively. I am new to R and just trying to figure out how to count the number of pairs of values…
DataScience
  • 3
  • 1
  • 3
0
votes
1 answer

Advice on how to implement url source encryption with key-pair-id

can someone shed a light on how to do encryption to get url like this one? or suggest usefull links to look into/keywords to search for? src: …
unkind
  • 27
  • 6