Encrypt in c# / decrypt in php

  • Thread starter Thread starter Matt
  • Start date Start date
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
 
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
 
Back
Top