std.bigint: BigInt conversion

Stian stian.pedersen at gmail.com
Sun Nov 25 14:04:17 PST 2012


On Sunday, 25 November 2012 at 21:36:38 UTC, novice2 wrote:
> How i can convert ubyte[] to BigInt and BigInt to ubyte[] ?
> Or uint[]...
>
> For example, i need RSA crypto. I should get ubyte[] data, 
> ubyte[] key, convert it to BigInt, calculate, then save result 
> as ubyte[] data again.
>
> But i see BigInt convertable to string only :(

If you look in https://github.com/apartridge/crypto you'll find 
both an altered BigInt and RSA skeleton. I think you'll find what 
you are looking for.


More information about the Digitalmars-d-learn mailing list