mercredi 8 avril 2020

Javascript library for random prime number generation

I am currently working on a Javascript team project which involves cryptography, a field I do not master, unfortunately.

I want my program to be as safe as possible, if possible industry-level safe, and as such I have been searching for community-approved implementations of random big prime number generation algorithms. I explored several libraries such as Node.js Crypto and Web Cryptography API, but I did not find there a straightforward function that returns a random big probable prime number.

I found a library that contains what I want (in the link below), but its creators say that I should prefer the libraries I cited above for cryptographic purposes.

https://github.com/juanelas/bigint-crypto-utils#prime

Is there a preferred way among the community to generate such prime numbers in Javascript ? If so, which libraries does it use ?

Thank you in advance for your help.




Aucun commentaire:

Enregistrer un commentaire