RSA加密实现 [英] RSA encryption implementation

查看:81
本文介绍了RSA加密实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

long i;

        C = 1;
        for(int t=0;t<sss.length();t++)
        {
            for(i=0;i< e;i++)

                C=C*(string_to_hex(ccc))%n; // <- this part cannot use 

                                            // string_to_hex is string datatype
                    C = C%n;

        }





这是RSA加密代码

我怎么做使用此公式加密十六进制值或字符串值?



this is the code of RSA encryption
how do i use this formula to encrypt the Hex value or string value??

推荐答案

这看起来不是 RSA 实施给我。你可以从维基百科的RSA页面开始[ ^ ]。
That doesn't look a RSA implementation to me. You could start from the very RSA page at Wikipedia[^].


这篇关于RSA加密实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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