Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fromHex not exists #90

Open
zhangchunsheng opened this issue Sep 9, 2024 · 1 comment
Open

fromHex not exists #90

zhangchunsheng opened this issue Sep 9, 2024 · 1 comment

Comments

@zhangchunsheng
Copy link

fromHex not exists

@nghuuquyen
Copy link

You could try

from

Hash::fromHex($hex);

to this

use phpseclib3\Math\BigInteger;


$big_int = new BigInteger($hex, 16);
Hash::fromBits($big_int->toBits());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants