FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Encrypt/decrypt compatibility with Microsoft Crypto API?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Encrypt/decrypt compatibility with Microsoft Crypto API? [message #173942 is a reply to message #173941] Fri, 13 May 2011 22:27 Go to previous messageGo to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
Trevor wrote:
> On 5/11/2011 4:15 PM, JohnT wrote:
>
>> When I did something similar, I wrote a C applet to do this.
>> You can't use standard tools because Windows pads the data differently.
>>
>> I used mcrypt with rijndael-128 and cbc
>> Has been working successfully for a number of years.
>>
>> In order to get it to work, I had to do the en/decryption both ways in
>> windows, and keep the data at each step, then replicate the data at the
>> linux side.
>>
>> I think the main issue is that on linux, the data is 0 padded.
>> On windows, the data is padded with a byte containing the length (in
>> bytes) of the padding.
>
> I'm actually running the php site on a Windows server, but it looks like
> the endian-ness may still be an issue.
>
> The Windows program was made with PowerBuilder, and since PowerBuilder
> is able to create .Net assemblies, and PHP is supposed to be able to use
> .Net assemblies, I thought it might be easiest to use the existing code
> and put it in an assembly.
>
> Turns out PHP's support for .Net assemblies is not all that great. Yes,
> the example at php.net for this functionality works, but as stated in
> several stagnant bug reports, other objects within the same mscorlib.dll
> assembly don't even work. Is is correct, as it appears, that development
> on DOTNET has ceased, leaving it not very usable?
>
> This has been one long week, with nothing really to show for it. :(
>
> - Trevor
I fear that is most peoples experience if trying to mix Microsoft with
anything else. It nearly always curdles...;-)


I spent a fruitless hour trying to get Word to understand any document I
could produce 'cant open, out of memory'

Gave up and installed open office on the wife's Mac..
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: some of the issues of NOT storing images in a secure database..
Next Topic: New PHP tutorial
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 13 08:44:34 GMT 2024

Total time taken to generate the page: 0.05277 seconds