publickey

Get CruiseControl to talk to github with the correct public key.

Hi All, Has anybody installed git and ControlControl and got CruiseControl to pull from GitHub on a window 2003 server. I keep getting 'public key errors (access denied)' - Which is good i suppose as that confirms git is talking to GitHub. However what is not good is that I don't not know where to install the rsa keys so they will be p...

Is there a public / private key encryption scheme that will not change a message's length?

Is there a public / private key encryption scheme that will not change a message's length? I would like to encrypt a message one packet at a time, but if the packet grows, it would no longer just be one packet long. ...

how does public key cryptography work

Hello, What I understand about RSA is that Alice can create a public and a private key combination, and then send the public key over to Bob. And then afterward Bob can encrypt something using the public key and Alice will use the public and private key combo to decrypt it. However, how can Alice encrypt something to be sent over to B...

Github: readonly access to a private repo

I am developing some private projects on Github, and I would like to add nightly cronjobs to my deployments servers to pull the latest version from github. I am currently doing this by generating keypairs on every deployment server and adding the public key to the github project as 'Deployment key'. However, I recently found out that t...

Encryption from c# application

SITUATION: I need to make encryption happen between my remote database and my c# application. I don't know what I'm doing (never done any encryption before) and all the stuff I found on the web was for asp.net and dealt with the web.config file. SOME RELEVANT DATA: My connection string contains password info for SQL server authenticatio...

Create a service that connects to remote database and uses public key encryption

I have been searching all day and reading many tutorials and still I am confused. I am working on a project that has the following requirements as specified by the client (customer - not to be confused with client app): Connect to a remote server and verify that connection was successful. Connect to Web service on said server via SOAP....

Getting the PublicKeyToken of .Net assemblies

What is the simplest way to find the Public Key Token of an assembly? The simplest way i can think of would be a simple right-click, get public key, but this fonctionnality isn't there, maybe there is a VS Extension for that. I'm using VS2010, if an extension is available ...

Decrypt data using an RSA public key

First off, that is not a typo, I want to decrypt using a public key. The purpose for doing this is to challenge a third party to ensure they do, in fact, have the private key that corresponds to the public key. Basically, I would send some random data, they would encrypt it with their private key, I would decrypt it using the public ke...

Most Effective Public Key Encryption Method

There seems to be a lot of hype about asymmetric Public Key encryption. RSA, PGP... etc. You have a set of two keys and distribute one, so that either only you can encrypt the message or only you can decrypt the message. One method provides a way to verify the sender, while the other provides a way to secure the message. (Feel free to co...

PublicKey vs RSAPublicKeySpec

When I create an RSA keypair should I be be doing KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA"); kpg.initialize(2048); KeyPair kp = kpg.genKeyPair(); PublicKey publicKey = kp.getPublic(); PrivateKey privateKey = kp.getPrivate(); save("public.key",publicKey.getEncoded()) save("private.key",privateKey.getEncoded()) OR Key...

Using AsymmetricAlgorithm Private and Public key with RSA C#

I have two AsymmetricAlgorithm objects that contain an RSA Private and RSA Public key. The private key was retrieved out of the Windows-MY keystore and the Public key from a user's certificate. How can I use these keys along with RSACryptoServiceProvider to encrypt data using the RSA algorithm in C#? In other words, how can I specify tha...

For RSA, how do i calculate the secret exponent?

For RSA, how do i calculate the secret exponent? Given p and q the two primes, and phi=(p-1)(q-1), and the public exponent (0x10001), how do i get the secret exponent 'd' ? I've read that i have to do: d = e-1 mod phi using modular inversion and the euclidean equation but i cannot understand how the above formula maps to either the a-1...

iPhone SDK 4.0: Get publicKey and privateKey from a certificate / identity profile stored in KeyChain

Hello Community I am trying to get the public and private Key from a certificate which i have already installed on the iPhone. (It is shown unter Settings -> General -> Profiles) I need this keys for encryption sensitive data. (RSA Algorithm) Up to now i have found no way to get access to the keys. Is it even possible ? If not: What...

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...

Ruby - hosting private gems

Hello there, By any chance, is there any place it's possible to host private ruby gems? So I could allow it to be pulled only for specific places by using public key or something like that? Thanks ...

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 ...

problem with cloning git repository

Hi All, I am trying to host a git repository. Googling around found this tutorial regarding hosting git repositories. But things didn’t go well :( I am using Ubuntu 10.04. IP: 192.168.0.131 Openssh running on port 22 It was going good till setting up gitosis-admin repo. Here is what I did. I generated public key on this host linux ...

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 ...

Why is the same Public Key generated even with different key container names?

private readonly string KeyContainerName = "MyKeyContainer"; public void GenerateKeyPair() { Debug.WriteLine("Generating Key Pair"); CspParameters cp = new CspParameters(); cp.KeyContainerName = KeyContainerName; cp.Flags = CspProviderFlags.UseDefaultKeyContainer; ...

Convert RSA public key, from XML to PEM (PHP)

How convert RSA public key, from XML to PEM (PHP)? ...