• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to decrypt C# code in php

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi friends,

I have written code C# for encryption using Rijndael algorithm.Now i want to decrypt it in php. I tried for that but not getting exact string which i encrypted.
Below is the encryption code for C#.



Decryption code in php is



Using above php code ,I am not getting original value. Kindly advice.....

Regards,
Dinesh Pise
 
Ranch Hand
Posts: 71
PHP Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would first verify that a specific plain text string gets encrypted to the exact same encrypted and encoded string in both environments. If not, then the algorithms are not compatible (perhaps due to differences in interpretation of the algorithm, or perhaps in one group 'tweaking' the algorithm to 'make it better'). If the encoded strings are not the same, you will have to try other algorithms until you find one that generates the same encoded string on both platforms.
 
reply
    Bookmark Topic Watch Topic
  • New Topic