将所有bigintegar转换为其字符串格式 [英] Convert any bigintegar to its string format

查看:71
本文介绍了将所有bigintegar转换为其字符串格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我确实在C#中使用rsa算法进行密码学研究
我使用Bigintegar数据类型,我的加密字符串采用bigintegar的形式,如何将其转换为字符串的形式

I do work on cryptography using rsa algorithm in c#
i use Bigintegar datatype my dcrypted string is in the form of bigintegar how i convert it in the form of string

推荐答案

尝试一下,

Try this,

BigInteger originalNumber = BigInteger.Pow(UInt64.MaxValue, Byte.MaxValue);
string generalString = originalNumber.ToString("G");
string roundTripString = originalNumber.ToString("R");



跟随msdn链接
http://msdn.microsoft.com/en-us/library/dd268260.aspx [ ^ ]

希望这会有所帮助.

欢呼



Follow the msdn link
http://msdn.microsoft.com/en-us/library/dd268260.aspx[^]

Hope this helps.

cheers


这篇关于将所有bigintegar转换为其字符串格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆