Ugh, either I'm sleepy or I'm not getting how to use your module properly Brucey.
The place I'm stuck at is the following:
Basically, I can't figure out how to use tmapm.pow() for this. I've tried a lot of things, but can't seem to wrap my head around it :( I'll go sleep on it, but would really appreciate if you could give me a hint! :D
The place I'm stuck at is the following:
function generate_login_key($servkey, $username, $password) { $dhY = "0x9c32cc23d559ca90fc31be72df817d0e124769e809f936bc14360ff4bed758f260a0d596584eacbbc2b88bdd410416163e11dbf62173393fbc0c6fefb2d855f1a03dec8e9f105bbad91b3437d8eb73fe2f44159597aa4053cf788d2f9d7012fb8d7c4ce3876f7d6cd5d0c31754f4cd96166708641958de54a6def5657b9f2e92"; $dhN = "0xeca2e8c85d863dcdc26a429a71a9815ad052f6139669dd659f98ae159d313d13c6bf2838e10a69b6478b64a24bd054ba8248e8fa778703b418408249440b2c1edd28853e240d8a7e49540b76d120d3b1ad2878b1b99490eb4a2a5e84caa8a91cecbdb1aa7c816e8be343246f80c637abc653b893fd91686cf8d32d6cfe5f2a6f"; $dhG = "0x5"; $dhx = "0x".$this->get_random_hex_key(256); $dhX = $this->bcmath_powm($dhG, $dhx, $dhN); $dhK = $this->bcmath_powm($dhY, $dhx, $dhN);
Basically, I can't figure out how to use tmapm.pow() for this. I've tried a lot of things, but can't seem to wrap my head around it :( I'll go sleep on it, but would really appreciate if you could give me a hint! :D