rsa

Reading RSA Private Key in PEM format And Reading public Key from certificate

I'm trying to use a PEM(X.509) certificate (stored in a privateKey.pem file on disk) to sign messages.After that i need to verify signature by using certificate (sent to the receiver). Help with this, especially example code in c# and RSA algorithm ...

Public key encryption in objective-C/iPhone

I have a .net desktop application which calls SOAP services. The SOAP request sends some data encrypted with .net 'RSACryptoServiceProvider' library. I have the public key for encryption. I am trying to port this application into iPhone, which requires me to do the public key encryption in objective-c/iPhone. Can anyone please point m...

Using ASP.NET to create a windows authenticated token from a basic authenicated web site

Hi all Inside IIS I have a virtual directory which is protected by basic authentication. What I want to do is allow the user to authenticate themselves, then use an aspx page to create a windows token and redirect the user to an xbap inside a virtual directory secured by windows authentication. The reason behind using the initial aspx ...

Blackberry RSA algorithm implementation?

Does anyone know good example or API documentation of RSA implementation for Blackberry platform? My task is encrypt-decrypt conversation between server and device on own protocol. ...

how to use RSA encryption for the iPhone

Greetings, being a newbie with these kinds of things, I'd just want to know how to do RSA encryptions in objective C? I shall be using it on an iPhone app I'm developing if anyone could point to a simple tutorial on the matter, it would be greatly appreciated. Thank you in advance ...

Importing OpenSSH RSA Public / Private Key Pair into Apple's Keychain Access

As stated in the title, I would like to import a key pair into Keychain Access. What I have done: Obtaining an RSA public / private key pair by using OpenSSH What I am going to do: Importing the key pair into the "login" keychain of Keychain Access Creating a CSR with OpenSSL Send the CSR to Apple for obtaining a developer...

Using RSA in Python

Hi , I am using RSA to encrypt/decrypt my session keys in Python. I am using Pycrypto library. After generating the keypair, I want to extract the private key and public key from that generated key and store them in different files. How can I do this? I can see the has Private method which can tell that the generated keypair has private...

Inserting Encrypted Data in Postgres via SQLALchemy

Hi, I want to encrypt a string using RSA algorithm and then store that string into postgres database using SQLAlchemy in python. Then Retrieve the encrypted string and decrypt it using the same key. My problem is that the value gets stored in the database is not same as the actual encrypted string. The datatype of column which is storin...

OpenSSL PHP Function doesn't work

Hi, I'm looking for days how to translate this command to OpenSLL php function: $ openssl pkcs8 -inform DER -in aaa010101aaa_CSD_01.key -out AAA010101AAA.key.pem Enter Password: a0123456789 This work perfect, but I can't (I don't know) use the correct function of PHP OpenSSL http://www.php.net/manual/es/ref.openssl.php I have made th...

Tomcat can't be restarted in Eclipse (RSA)

Basically, I work in RSA(7.0 on Windows 7) and when I need to restart the Tomcat (5.5) server, I get this: 2010.08.18 17:35:27 org.apache.catalina.startup.Catalina start INFO: Server startup in 1541 ms 2010.08.18 17:37:33 org.apache.coyote.http11.Http11BaseProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 2010.08.18 17:37:34 org...

RSA and xml-formatted public key in cocoa

How can I fill RSA structure with xml-formatted public key for using with RSA functions on Mac OS X. In other words: There are following windows c# statements: RSACryptoServiceProvider rSA = new RSACryptoServiceProvider(); rSA.FromXmlString(xmlKey); return rSA.VerifyData(Encoding.UTF8.GetBytes(message), "MD5", signature); how can...

openssl.net rsa encryption working example needed

Hi, Does anybody have any working example of RSA encryption with OpenSSL.NET ? I want to encrypt some data using private key stored in PEM format. I create a OpenSSL.Crypto.RSA object and want to use the PrivateEncrypt method, but it throws OpenSSLException with no additional data (empty Errors array, no inner exception). Before using ...

Generate Websphere 6.1 compatible EAR file using Maven

Hi everyone, I've been looking around for some time and couldn't find a clear explanation for this. We're using a Websphere server to run a Web application developed using Rational Software Architect 7. This application is composed of a war project and 4 jar projects. To make the final ear file there is a sixth project which contains t...

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

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

How to convert RSA key numbers into OpenSSL-compatible keys?

I want to be able to generate private/public RSA keys with javascript only... So far I found http://www.hanewin.net/encrypt/rsa/rsa.htm, it includes the only Javascript RSA key generator I found. I created wrappers (modifying the code from the demo page (see link)), here's the one for the keys: function genKeys() { rsaKeys(1024); var...

I Have: RSA key, exponent, plaintext. I Want: cipher text. Should be 2 lines of Obj-C no?

As the title says. Using the iPhone SDK, I want to RSA encrypt some (small) plaintext using an existing key and exponent I am given from a server for authentication. Surely this is a trivial task that requires one library import and a couple of lines of code? If not, why not? ...

How to prevent a man-in-the-middle attack in case of a compromised server?

Imagine that a server is serving public keys of the users to their partners to make encrypted communication possible. However, the server does NOT have access to the private keys.. Anyway - imagine the server is hacked and it sends not the requested public keys: Alice requests Bob's public key Server sends Eve's public key ...

Are there any very simple RSA implementation in C++

Are there any very simple cross-platform C++ libs which can do assymetric encription? Not necessary efficient, just working. I imagine it could be just 3-4 functions in an .h file which do arbitrary precission math and that's it. I belive using OpenSSL here is an overkill. ...

what python package for rsa algorithm

hey crypto experts, looking to do RSA encryption on a short string in python. This is for a piece of user data that I want to store without staff (incl myself) being able to see it. The private key will be on a thumbdrive in my safety deposit box for when we get subpoenaed. my question: is there a 'probably correct' python package for ...

How to make this RSA lib (with en/decryption functionality only(!)) sign something?

Or concrete - I am using this javascript RSA library for the client side code of my experimental project... I would like to be able to sign and verify messages (-> encrypt with private and decrypt with public key) Is there a way to alter the key data in a way that the algorithms for en/decrypting do it with the "reverse" key? I tried t...