crypto
crypto copied to clipboard
[feature request] rsa support
Like the titel says: Rsa Support.
First stuff that we need is a bigint class. i don't know where it fits. But i think BigInt should be directly in the core haxe repo?
There was discussion about BigInteger and RSA here : https://github.com/HaxeFoundation/crypto/issues/2 As you can see, the last suggestion was to be a separate library. Also Nicolas mention here ( https://github.com/HaxeFoundation/haxe/issues/7535 ) about adding large integer literals supports ( int64) , but not say anything about BigInt So yes, for RSA support first need to be added BigInt.
P.S. Just as info here is a BigInt mplementation part of thx core https://github.com/fponticelli/thx.core/blob/master/src/thx/BigInt.hx
I worked on a bigint implementation this week. It covers a few but not all targets for now. But I think it can be a foundation for RSA.
https://github.com/kevinresol/bigint
@kevinresol it's a good start to keep it native. I think it should be like the haxe.Int64. Keep it native if it is possible and if it's not use it like the BigInt implementation of thx.core
I realise now that thx seems to be mostly a port of BigInteger.js also. Well I wasted my time :D https://github.com/Aurel300/hx-bigint