开发者

I am looking for an C# implementation om AES-256 in CTR-mode [closed]

Closed. This question does not mee开发者_如何学编程t Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 8 years ago.

Improve this question

I've been searching the internet for an implementation of AES-256 in CTR-mode, in C#. In the RijndaelManaged-class where you find in .Net-framework, you find some supported modes but not CTR. I read something about using ECB-mode, and XOR the plain-text.

Does anyone have information how to implement the AES-256 in CTR-mode? Or an link or anything tha would help me to the right path.

Thanks you.


I think that Bouncy Castle supports CTR

http://www.bouncycastle.org/


You can check the NCiphers.Crypto library. It supports CTR:

NCiphers.Ciphers.AES aes = new NCiphers.Ciphers.AES();
aes.Mode = NCiphers.Ciphers.CipherBlockMode.CTR;
aes.Encrypt...


Here's one in JavaScript: http://www.movable-type.co.uk/scripts/aes.html

You could integrate it into your .NET app using JavaScript.NET

Might be a bit slow, but it should be really easy to get it running.

Or, you could use it as a model for building your own implementation.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜