PHP Classes

RSA Cryptography

Recommend this page to a friend!

      Top level forums  >  PHP Specialists  >  General  >  RSA Cryptography  
Subject:RSA Cryptography
Summary:Working with Very Large Number
Messages:3
Author:michael smith
Date:2010-04-03 12:39:55
Update:2010-04-04 08:16:06
 

  1. RSA Cryptography   Reply   Report abuse  
Picture of michael smith michael smith - 2010-04-03 19:19:48
I have been working on a PHP Class to generate, validate, encrypt and decrypt .Net RSA keys. This is part of a larger project. The problem I have is with Normalising the D parameter. The D parameter needs to padded out while in binary. These binary numbers are up to 4096 bits in length but will get longer. When I attempt to Pad my D parameter PHP wants to pull off my leading 0's even using strings formatting. Is there a method to pad these very large binary numbers?

Cheers
Michael Smith

There are 2 replies in this thread, which are not being displayed.
Browsing this forum thread replies is available only to premium subscribers.


Go to the premium subscriptions page to learn how to become a premium subscriber and have full access to this forum.