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