AbdelbakiBoukerche / rsa_encrypt

rsa encrypt package
MIT License
17 stars 16 forks source link

Add parameter to allow custom BitStrength for keys #6

Open eddiesTime opened 3 years ago

eddiesTime commented 3 years ago

It would be great to assign a custom bit length to the RSA key generation. Some time in the last couple of months, the compute method for isolates got extended which allows the method to execute static functions. This change gives us the ability to provide a custom bit length.

I've used an array as a parameter for the getRsaKeyPair function to mock a tuple. If you think another data type would be more fitting feel free to adapt the proposal.