Questions tagged [public-key]

Public-key (or asymmetric) cryptography is a form of cryptography that does not require common secrets between the communicating partners.

Public-key cryptography or asymmetric cryptography is a form of cryptography that does not require common secrets between the communicating partners. It thus solves the problem of key-exchange. In many modern cryptosystems, public-key cryptography is used to establish a secret key, and the faster symmetric key crypto is used to actually encrypt and decrypt data.

Public-key cryptography is generally based on "one-way" mathematical functions - operations that are easy to perform, but difficult to undo. An example (on which RSA is based) is multiplication vs. factoring. Given two enormous primes p and q, it is simple (for a computer) to multiply them together to get p*q = n, but it turns out it is very difficult (even for a computer) to factor n in a reasonable amount of time.

1163 questions
0
votes
1 answer

Non-Prime Factorization Public Key Algorithms and Code?

I'm looking for public key algorithms that are not based on the difficulty of prime factorization. In particular, there are rumblings about the prime factorizations being solved in some state security apparatus with a combination of better…
0
votes
1 answer

Which decryption uses a binary public key with variable length?

I have a program which is obviously decrypting its data with a public, binary key of variable length. I came to these facts by doing some more or less educated guesses: Reverse Engineering revealed that the program needs the name of a file…
Ray
  • 7,940
  • 7
  • 58
  • 90
0
votes
2 answers

ssh permission denied (publickey) when trying to access ec2 from different computer

I am trying to access an ec2 instance using a different (mac) computer. In order to do so, I created a new keypair, used chmod 600 to set the permission, and then used ssh-add. When I try to ssh into my ec2 instance, I get "permission denied…
abcooper
  • 173
  • 3
  • 8
0
votes
1 answer

Erlang - Decoding RSA public Key

Follow-up to this one. I got the reading/decoding working 1> {ok, F} = file:read_file("inaimathi.rsapub"). {ok,<<"-----BEGIN RSA PUBLIC KEY-----\nmQINBE9NBIQBEADMSzN6b0FaPP0rGiLDWKfH4ehN66Z0SAIynXm6lBHjmO69pNsm\niIe4p1X9aXhr"...>>} 2> [Entry] =…
Inaimathi
  • 13,853
  • 9
  • 49
  • 93
0
votes
1 answer

SSH doesn't accept public key, and permissions appear to be correct

me@a1:~/me$ ssh -v ae@1.1.1.1 OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012 debug1: Connecting to 1.1.1.1 [1.1.1.1] port 22. debug1: Connection established. debug1: identity file /home/me/.ssh/id_rsa type 1 debug1: Checking blacklist file…
LittleBobbyTables
  • 4,361
  • 9
  • 38
  • 67
0
votes
6 answers

Public key or Diffie-Hellman Key Exchange Algorithm

Consider and client server scenario and you got two options: You can include Server's Public Key in Client and perform the exchange. You can use Diffie Hellman KeyExchange Algorithm to handshake and then exchange the key. Which one is more secure…
Usman Masood
  • 1,937
  • 2
  • 17
  • 33
0
votes
1 answer

Best approach to pass the public key from client to server

I have a tcp server and using cms/pkcs#7 to secure the message passed between the client and server. Would it be normal practice to pass the clients public key to the server, as part of initial session? As its the public key, when the session starts…
scope_creep
  • 4,213
  • 11
  • 35
  • 64
-1
votes
1 answer

Exchanging Public Keys

The Apple documentation on certificates and keys says that public keys can be sent to other users. This is of course their whole point. Without going into a sidetrack about man in the middle attacks, I'd like to know how this is supposed to…
Chris Fox
  • 641
  • 6
  • 10
-1
votes
0 answers

How to solve the following signature errors that I got when tried `sudo ap-get update`?

The command that I entered and the response for that command are shown below. In the code below I masked the username of the computer and the public key. `***@***:~$ sudo apt-get update Hit:1 http://packages.microsoft.com/repos/code stable InRelease…
Jeeva M
  • 9
  • 2
-1
votes
1 answer

get ecc public key from x and y components in PEM format using openssl

Can I get the ecc public key from x and y components in PEM format using openssl? X: 1d 43 15 e3 84 99 d6 f6 9f 49 61 8a ae ec f2 4f Y: b5 1a 86 cf f9 0e 01 af 3a 9a 52 b3 c6 58 2c 48 thank you!!!!!!!!!!!
-1
votes
1 answer

How to write *PrivateKey type variable to a file in golang?

I have generated a RSA private key (using crypto/rsa) and corresponding public key in go. Now I want to write them to two files (each one to a file), but WriteString and Write functions are specific to string and []byte variable. Also instructions…
sh.sagheb
  • 27
  • 1
  • 1
  • 7
-1
votes
1 answer

How can I clone my git repository with the correct public key permission?

in terminal I try to clone my git repository git clone git@github.com:myuser/myrepository.git The error message is: git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct…
peace_love
  • 6,229
  • 11
  • 69
  • 157
-1
votes
1 answer

Why armored publick key from gpg locate-keys public differ from PGP public key server key?

I was trying to verify signature of linux-firmware with GnuPG gpg --locate-keys jboyer@redhat.com I've got publick key with : gpg --export --armor | less This key have 88 lines I used public PGP server and found public key…
-1
votes
1 answer

Azure VM creation using ssh public key source=use existing public key

I created a VM using "use existing public key". When I try logging into Linux Server using SSH, I'm getting error as "Permission denied (publickey)". In case if I select "use existing key stored in Azure", it is working as expected. Can you please…
-1
votes
1 answer

Unable to push project from local to git repository set up in AWS : Permission denied (publickey) when try git push production master

I am new to AWS and followed a tutorial to set up git in aws and the push my local files into it. I have a Key with me with .pem extension which got generated while I was creating the instance. I have added the remote repository like this: git…