I am looking for an C# implementation om AES-256 in CTR-mode [closed]
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 questionI'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.
精彩评论