RSA的最小密钥长度 [英] Minimum key length of RSA

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

问题描述

当我使用RSA在C#中实现许可证密钥机制时,遇到了 RSACryptoServiceProvider类,它被限制为至少384位密钥大小。这个密钥的长度直接影响我创建的签名(==许可证密钥)。

When I implemented a license key mechanism in C# using RSA, I came across the RSACryptoServiceProvider class, which is limited to a minimum of 384 bit key size. This key length has direct impact on the signature (==license key) which I created.

384位是RSA的技术限制,通常还是可以

阅读(Wikipedia)解释RSA的(德国)维基百科文章时,他们在其RSA中使用非常小的素数数学计算示例。这似乎行得通,所以我希望密钥的长度小于20位...注意:我现在绝对不在乎安全性。那是另一个讨论。我只是想弄清楚技术限制。

Reading the (German) Wikipedia article which explains RSA, they use very small prime numbers in their mathematics calculation example. That seems to work, so I would expect the key size to be shorter than 20 bits... Note: I absolutely don't care about security at the moment. That's another discussion. I'll just want to get the technical limits right.

我知道不应该使用Stackoverflow来寻求工具,但是如果您知道.NET RSA,具有较低限制的库,也许您只是想作为补充说明。

推荐答案

如果不用担心安全性,然后,您可以实现密钥大小< 384位。
不建议这样做,因为它不安全,但是可以使用。

If you do not care about security then Yes, you can implement a RSA with key size < 384 bits. It is not recommended as insecure but it works.

在此幻灯片 Dan Boneh举了一个示例,其中私钥约为128位。 (他的其余课程也值得一看)。

In this slide Dan Boneh takes an example with a private key on ~128 bits. (the rest of his courses worth having look too).

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

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