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
0 answers

Understanding how to change raw RSA hex to proper key

You can ignore everything up to update 3, the rest is just for reference about what got me to the point I am at. Okay, so I'm pretty new to coding, and I wanted to tackle something functional. I've been working on a RSA cryptosystem that will…
Ryuluce
  • 21
  • 6
0
votes
1 answer

How pair codes are generated for devices with no browser support (OAuth 2.0)?

I am currently implementing an OAuth 2.0 provider and I wish to support devices with no browser support like consoles and TVs! I took as example the YouTube pair for my smart TV, which generated the 8 letters code PJGV-SJBQ! How and where (server or…
Lucas Batistussi
  • 2,283
  • 3
  • 27
  • 35
0
votes
2 answers

Understanding EC2 credentials when provisioning server

I'm using Ansible to provision EC2 servers. Here's what I've got so far: - name: Launch instances local_action: module: ec2 key_name: my-key aws_access_key: *** aws_secret_key: *** region: us-west-1 …
mtyson
  • 8,196
  • 16
  • 66
  • 106
0
votes
1 answer

Amazon EC2 key pair changed automatically

I have 2 instances in my Amazone ec2 console. Let it be Inst1 and Inst2 . I created an image ( AMI ) for Inst2 and I launched that image as new instance with new key pair. But with that newly created I was not able to Login to the instance via ssh…
Sujith PS
  • 4,776
  • 3
  • 34
  • 61
0
votes
1 answer

how to get the output of each() function in perl when using key value pairs?

%group = ( 'forest', 'tree', 'crowd', 'person', 'fleet', 'ship' ); while ( ( $key, $value ) = each(%group) ) { print "A $value is part of a $key.\n"; } This is the code and the output is this A person is part of a crowd. A tree is part of a…
nadiyah123
  • 27
  • 11
0
votes
1 answer

extract public key from RSA private key in c++ without openssl

I know RSA private key contains the information of the associated public key. How can I dump the public key from the private key? I want to do it in iOS environment without openssl. Is it possible?
yohon
  • 19
  • 4
0
votes
1 answer

JCraft : SCP using private key without password

I was trying to scp using key-pair between 2 linux server. I was trying to follow http://sthen.blogspot.in/2008/03/sftp-i-java-with-jsch-using-private-key.html I am able to scp file between linux server but when I execute code I am getting error…
user3493965
  • 5
  • 1
  • 4
0
votes
2 answers

error in RSA Keypair generation in java

I need to generate RSA key pair in java.I tried the following, <%@page import="java.security.Key"%> <%@page import="java.security.KeyPair"%> <%@page import="java.security.KeyPairGenerator"%>
0
votes
2 answers

How to make my PHP client be the only one that can get data from my PHP server

Hello I have this simple code: Client
Alejandro
  • 1,159
  • 3
  • 16
  • 30
0
votes
1 answer

SSH keybased authentication for developers

I have a linux web server in which I have multiple web sites. I have 5 website programmers now doing the coding for all the sites. How can I provide a key-based authentication for the programmers in such a way that they have access only to /home…
Gopu
  • 1,022
  • 2
  • 11
  • 20
0
votes
1 answer

Creating public and private keys

Im using the following code to create keys, but when i try to use KeyGeneration.getPublicKey() returns null. public KeyGeneration() throws Exception,(more but cleared to make easier to read) { KeyPairGenerator kpg =…
Mark Coker
  • 33
  • 6
0
votes
1 answer

permission denied (public key) -aws interface

I'm kind of new to bash programming, but I decided to take an online class in which we create a t1 micro instance through AWS and ssh in and do all of our work there. I had been sshing through an alias I had made just fine for about a month, then I…
Wold
  • 952
  • 1
  • 13
  • 25
0
votes
1 answer

How to recreate .pem file if I forgot to save it when created Key Pair in AWS EC2 using boto

I did this: try: ec2.get_all_key_pairs(keynames=[key_name])[0] print 'Key pair %s exist'%key_name except ec2.ResponseError, e: if e.code == 'InvalidKeyPair.NotFound': print 'Creating key_pair %s'%key_name key =…
Vor
  • 33,215
  • 43
  • 135
  • 193
0
votes
1 answer

How To write TestCase nunit test for keyPairValue

I am looking for a way to pass keyValuePair into my test with TestCase [TestCase>(1,"XX")] public void someTest(KeyValuePair expectedkeyValuePairs) { // do some thing; } The answer is…
wikinevis
  • 189
  • 1
  • 2
  • 11
0
votes
1 answer

How to access ec2 instance that is not associated with key pair

I have an ec2 instance that was spun up automatically through autoscale. It doesn't have a key pair associated with it. Can I assign my existing key to it? If not how do I log into the instance?
Atma
  • 29,141
  • 56
  • 198
  • 299