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

Exception when initializing PublicKey from RSA public key stored as a string (works on laptop, not on server)

I have a application I am working on that deals with handling certificates and I am running into a issue where my code works correct when I run in via JUnit tests locally on my laptop but when I actually deploy the code to my server I am getting a…
Stewart Dale
  • 361
  • 1
  • 5
  • 12
0
votes
1 answer

Using git with 2 laptops and multiple identities

I started a project on my office computer. Now I'm trying to move development to my home laptop. But my home laptop already has keys of own (for several other projects). This particular project is on bitbucket. Others on this computer are on…
CalZone
  • 1,701
  • 1
  • 17
  • 29
0
votes
1 answer

I can't use git to push my source code, It said "Permission denied (publickey)."

I had created a repository. and I run these command in local computer: $ git init $ touch README $ git add README $ git commit -m "first commit" $ git remote add origin git@github.com/xxxxx/DataStore.git All things are working in what it should be.…
Hevake Lee
  • 13
  • 3
0
votes
1 answer

The key container name 'bsn' does not exist

I'm trying to run the project of bsn-goldparser (https://code.google.com/p/bsn-goldparser/) and I have the next trouble: Visual Studio shows me the next message : "Error 2 Cryptographic failure while signing assembly...The key container name…
farho
  • 33
  • 1
  • 7
0
votes
1 answer

Getting public key using modulus and exponent

hi to all another problem another question.. I am on a C# project that decrypts encrypted messages. for decrypting i am using openssl. I am able to encrypt a message with private key and decrypt it public key with given below code CryptoKey key =…
tlgtkn
  • 13
  • 1
  • 8
0
votes
1 answer

Where can I get the public keys of all popular certificate authorities

From where I can the list of popular certificate authorities public keys . Just like all browsers are coming with pre-installed certificates(public keys) of certificate authorities. Now I am preparing ssl client which will connect to the different…
neotam
  • 2,611
  • 1
  • 31
  • 53
0
votes
1 answer

push public key on multiple server using root account but under different user

I am trying to push some public keys on a whole bunch of servers using the root account but I wanna put those new keys under 'postgres' user. I'm doing this: $ cat new_dba_keys.pub | ssh -l root 10.224.1.16 "su - postgres |cat >>…
cparfon
  • 157
  • 1
  • 3
  • 13
0
votes
1 answer

Git push "permission denied"

I am attempting to push my code to my github account, however whenever I try, i get this Pushing to git@github.com:AlphaModder/Space-Dimension-Mod.git Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you…
AlphaModder
  • 3,266
  • 2
  • 28
  • 44
0
votes
2 answers

java - get key from byte array

I have a java program that encrypts file content with a random-generated key. That key is encrpyted with RSA and saved into a text file. Now, I have a java program that given the file and the keystore where the RSA key is stored, needs to first…
MichBoy
  • 299
  • 1
  • 4
  • 13
0
votes
1 answer

Encrypting a string with PublicKey + Base64 encryption

I have a RSA public key in String format and I want to encrypt a string using the same to Base 64. Here is the code that I am using for this: function encrypt(String pin){ String key =…
CodeFury
  • 1,520
  • 16
  • 29
0
votes
1 answer

Android Console Public Key

OK, I'm confused! Should I use the public key from "Android Console" when I create keystore for signing apk file? Does this make sense "If you have developer account, you can sign your application with DEVELOPER KEY. If you haven't acc you can use…
Đorđe Zeljić
  • 1,689
  • 2
  • 13
  • 30
0
votes
1 answer

Cannot pull code from heroku : the remote end hung up unexpectedly

I'm new to heroku. I uploaded my rsa key and then tried pulling the starter code for a Facebook app that I'm trying to make but when I use the git clone command, I keep on getting the message fatal: The remote end hung up unexpectedly. What could…
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
4 answers

public key cryptography implementation

I have been using the PHP mcrypt module for encrypting sensitive data at my company. This has been working well. However, I have been requested to create a new master password which should be able to decrypt any data. The problem is that this master…
KJ Saxena
  • 21,452
  • 24
  • 81
  • 109
0
votes
1 answer

Looking for Signing algorithm that creates 32 or 16 byte keys in Java

Cannot match up the size of key generated using public/private keys for licensing application. Ive written a self contained example that creates public/private key, create a license by signing user emailaddress with public key, and then check using…
Paul Taylor
  • 13,411
  • 42
  • 184
  • 351