privatekey

What algorithm does PGP use to encrypt the private key using the passphrase?

The PGPKeyRingGenerator constructor takes in a passphrase to encrypt the private key. What is the algorithm that it uses to do this? It has a field called encAlgorithm, but I couldn't find any documentation explaining what these algorithms are. ...

Storage of private and public key in MySQL-DB

Probably somebody asked that already, but I couldn't find any usefull information and I've never done it before. So here is the problem. If I'll get a set of key pairs (DSA public and private keys) with different time validity and unique ID, what is the best way to store them in MySQL-DB using Java? Is it a good idea at all to store t...

What's the use of the Public and Private key for reCAPTCHA?

reCAPTCHA requires a public and a private key before it can be implemented into a website. It also needs the reCAPTCHA keys depending on the website. What's the reason behind this? Does the Public and Private key affect the words displayed in the reCAPTCHA? I know that I can set the Public and Private key to be GLOBAL in which it can be ...

How would one write a private/public key system for a server authentication?

Hi all, I guess this might have been posted somewhere, I did search, but couldn't find anything. I have this server on which I run a game server, and where I want to have some TCP server (possibly written in Ruby) that will provide a pseudo-session with few commands available (like restart the game server, send the logs, etc.) What I ...

Public & Private Keys in .NET besides RSA

Hi All, Am I missing something obvious here (I hope I am), besides RSA, are there any other crypto methods in .NET that use a public & private key? Thanks! ...

How do I force makecert to output the private key to a file (not the Crypto store)?

I want to generate a key pair for use within my applications, but exporting them manually from the mmc is a pain. How can I use commandline parameters, or otherwise end up with a private certificate that resides on the hard drive, suitable for later distribution? ...

Using .snk's private key to sign arbitrary data

I'm developing a .NET package manager and one thing that got me thinking is security. Given that anybody can potentially upload an assembly to the repository, how do I verify that said assembly comes from a trusted source? For example, I'd trust NHibernate.dll much more if it was signed with a private key of guys from NHForge. To ensur...

Fighting with certificates: Access was not successfully obtained for the private key

I work in company with many servers and Pcs for developers. Servers are win2003, PC developers Windows XP. In a server Win2003 named preiis01, in preproduction environment, other people in company install a client certificate using any other user (unknown user for me) for logging in server preiis01. I use my user "domainCompany\myuser"...

"Cannot find the certificate and private key for decryption" for Certificate pfx pkcs#12 with private key

I have the following .Net code (asp.net) for sign using client certificate. I have client certificate stored under local computer and not the current user. The client certificate is pfx pkcs#12 and has private key Imported private key are NOT marked as exportable. my private key in client certificate protected by password. On the ...

Security of Exclusive-OR (XOR) encryption

XOR encryption is known to be quite weak. But how weak is it if I have a key that is made up of multiple keys of different (ideally prime) lengths which are combined to make a longer key. eg I have a text keys of length 5, 9 and 11. If I just apply the first key using XOR encryption then it should be easy to break as the encryption byte ...

iPhone: how/whether to include my existing private key a new certificate

Short version: Is it necessary or even possible for me to generate a new distribution certificate based on my existing private key, or is there no harm, both for new apps and updates to existing apps on the app store, to generate a new certificate with a new private key? Long version: It seems to me that there is conflicting/misleadin...

Can I update existing apps in the app store if I have rejected my distribution certificate because I lost my private key?

I have done A LOT of looking around on the internet and just cannot find the answer to this question. I lost my private key, and so I have rejected and re-assigned new certificate/key combo, but am having issues submitting app updates to apps signed with the old key with my new key. Is it possible to update an existing app with a newly ...