From: Perl R. <pe...@co...> - 2009-06-19 18:19:11
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> <font size="-1"><font face="Arial">Hi all,<br> <br> I'm running Perl 5.10 on Windows XP.<br> <br> I'm writing a program that must decrypt some data using Microsoft's CryptUnprotectData() function. If I use Luigino Masarati's Win32::CryptData module (<a class="moz-txt-link-freetext" href="http://search.cpan.org/~lmasara/Win32-CryptData-0.02/CryptData.pm">http://search.cpan.org/~lmasara/Win32-CryptData-0.02/CryptData.pm</a>), my program decrypts the data but then immediatley crashes. Sometimes I get an "Out of memory!" error. As an alternative, I've tried using Win32::API and simply making the call to </font></font><font size="-1"><font face="Arial">CryptUnprotectData() myself, but I can't get that to work either--I probably don't have the arguments right (no crash, it just always returns 0).<br> <br> Could anyone help me figure out what's wrong with </font></font><font size="-1"><font face="Arial">Win32::CryptData, or how to use Win32::API to </font></font><font size="-1"><font face="Arial">call </font></font><font size="-1"><font face="Arial">CryptUnprotectData() myself? I've been banging my head against the wall for days on this, so I'll take any help I can get.<br> <br> Thanks,<br> Rob<br> </font></font><font size="-1"><font face="Arial"><br> <br> </font></font> </body> </html> |