Dukpt.NET icon indicating copy to clipboard operation
Dukpt.NET copied to clipboard

HexToBigInteger()

Open c5racing opened this issue 6 years ago • 2 comments

Thanks for the great library. On the previous version, we could use:

BigInt.FromHex(track).GetBytes();

on version 2, it looks like it's changed to:

track.HexToBigInteger().GetBytes();

Can you confirm this is the intended behavior? After upgrading to v2, HexToBigInteger() is not accessible. I think it may be related to StringExtensions is an internal class.

c5racing avatar May 30 '19 15:05 c5racing

Yes, that's correct.

sgbj avatar May 31 '19 22:05 sgbj

I think the intention was that users would formulate their own way handling track data and that the conversion from big integers to bytes and back were really meant as an implementation detail. If you still need this behavior, I recommend copying the StringExtensions class into your codebase.

sgbj avatar May 31 '19 22:05 sgbj