Encrypt in c# / decrypt in php

M

Matt

Morning all.

Does anyone have code that will allow me to encrypt a URL in c# and
decrypt it in php?

Myself (c#) and a fellow developer (php) at another company have had a
great deal of problems trying to parse encrypted data in the
querystring. I'm using the DESCryptoServiceProvider and can
encrypt/decrypt on my side in c# no probs. He's using a php script and
can do they same, but we can't seem to encrypt using my c# code and
decrypt using his php script.

Has anyone encountered this before?

To make it more interesting I don't have the facilities to run php and
he doesn't have the ability to run c#!

Cheers
 
A

Alberto Salvati

I dont' konw if php can use csp provider.
CSP is used only by windows&c. Nom$ environment use pkcs#11.
I suggest to use a "encryiption subsystem" that provide cps and pkcs#11
interface.
I use digital signature in my app and use a subsystem like this and I've
both interface.
Otherwise, you can use a other system (no cps or pkcs#11), like an algo
that can be used from c# anc php, but only if you don't need a *strong
encryption*.

HTH

Alberto Salvati
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top