crypto icon indicating copy to clipboard operation
crypto copied to clipboard

[feature request] rsa support

Open lublak opened this issue 6 years ago • 4 comments

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?

lublak avatar Mar 09 '19 21:03 lublak

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

flashultra avatar Mar 10 '19 07:03 flashultra

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 avatar Apr 04 '19 05:04 kevinresol

@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

lublak avatar Apr 10 '19 18:04 lublak

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

Aurel300 avatar Apr 10 '19 18:04 Aurel300