/** * @return \Math_BigInteger */ public function toBigInt() { $b64 = new Base64UrlRepresentation(); $hex = bin2hex($b64->decode($this->value)); return new \Math_BigInteger('0x' . $hex, 16); }
/** * @param string $input * @return string */ public static function deserialize($input) { $base64 = new Base64UrlRepresentation(); return $base64->decode($input); }