Questions tagged [rijndaelmanaged]

.NET Framework (1.1 and later) managed version of the Rijndael (AES) algorithm.

.NET Framework (1.1 and later) managed version of the Rijndael (AES) cryptographic algorithm. Any public static (Shared in VB) members of this type are thread safe.

Class: System.Security.Cryptography.RijndaelManaged

269 questions
3
votes
1 answer

Rijndael cryptography not working on Windows Server 2012

I have a Windows Application (x64) that has been working fine on Winodws 7, 8 and now 10. Today we failed at running the program under a Windows 2012 Server. When we looked at the event log, we found an error originating from…
disasterkid
  • 6,948
  • 25
  • 94
  • 179
3
votes
2 answers

Key, salt and IV when using Rijndael encryption

I'm working on a website, where users are able to upload files. I want to encrypt these files, in case there is some kind of security breach where access is granted to them. When the user wants to download their files, I decrypt directly to the…
bdndk
  • 33
  • 3
3
votes
1 answer

Why does any length key work for RijndaelManaged?

Regarding the method... RijndaelManaged.CreateDecryptor Method (Byte[], Byte[]) Here it says about the first parameter... The secret key to be used for the symmetric algorithm. The key size must be 128, 192, or 256 bits. But I can set the key…
Ian Warburton
  • 15,170
  • 23
  • 107
  • 189
3
votes
1 answer

Rijndael managed: plaintext length detction

I am spending some time learning how to use the RijndaelManaged library in .NET, and developed the following function to test encrypting text with slight modifications from the MSDN library: Function encryptBytesToBytes_AES(ByVal plainText As…
J. Polfer
  • 12,251
  • 10
  • 54
  • 83
3
votes
1 answer

AES / Rijndael Test Vectors : what padding mode?

So I've been looking at these test vectors for the Known Answer Test for AES / Rijndael (with 128-bit block) in CBC mode, and I wonder: what kind of padding do they use? PKCS7?
J. Polfer
  • 12,251
  • 10
  • 54
  • 83
3
votes
2 answers

AesManaged and RijndaelManaged

Im currently developing a Silverlight application that connects to an old webservice. Our old webservice uses an encryption tool which silverlight does not support. Finally, we decided to used AesManaged for encryption, however, our webservice does…
xscape
  • 3,318
  • 9
  • 45
  • 86
3
votes
2 answers

C# Rijndael decryption returns extra question mark character

I am organizing some very basic symmetric encryption/decryption codes in a class for future use. I am able to encrypt and decrypt successfully... only with a small problem. Here is my code that reads in from a stream and en/decrypt to another…
Felastine
  • 793
  • 2
  • 8
  • 18
3
votes
1 answer

How to store the AES Rijndael generated Key to the database?

When creating the instance, the KEY and IV are generated for me. RijndaelManaged myRijndael = new RijndaelManaged(); How can I store the Key in my database or web.config file? And in what format? Because I will have to load the key when trying to…
Blankman
3
votes
1 answer

Convert RijndaelManaged code to AesManaged code

I got this block of code: public static string DoPrefixCipherEncrypt(string strIn, byte[] btKey) { if (strIn.Length < 1) return strIn; // Convert the input string to a byte array byte[] btToEncrypt =…
bolaji
  • 51
  • 5
3
votes
0 answers

2 CryptoStreams on 1 NetworkStream?

This concept seems simple enough: Create two separate applications, send encrypted text from the client to the server, then send a reply from the server to the client- I assumed that I could simply establish a TcpClient connection between the two,…
3
votes
2 answers

How to decode Rijndael in ruby (encoded in VB.net)

I am using Rinjael to encode in VB.NET and need to decode in Ruby. My VB.NET encryption class looks like this: Private Class Encryptor Private symmetricKey As System.Security.Cryptography.RijndaelManaged Private iVector As Byte() …
Sparky
  • 91
  • 1
  • 6
3
votes
0 answers

unable to use System.Security.Cryptography.RijndaelManaged in windows phone 8 project C#

I trying to encrypt data in a project but I'm unable to use the System.Security.Cryptography.RijndaelManaged in my project. I tried to create a new application with the specified class and it worked independently. But unluckily unable to add the…
Julius Robles
  • 73
  • 2
  • 8
3
votes
2 answers

PHP mcrypt_encrypt to .NET

I have almost lost my hair, mind and everything else! I have been trying to convert this PHP function to C#: function encrypt_decrypt($action, $string) { $output = false; $key = 'My strong secret key'; // initialization vector $iv =…
user1124937
  • 99
  • 10
3
votes
2 answers

Decryption with AES and CryptoAPI? When you know the KEY/SALT

Okay so i have a packed a proprietary binary format. That is basically a loose packing of several different raster datasets. Anyways in the past just reading this and unpacking was an easy task. But now in the next version the raster xml data is now…
UberJumper
  • 20,245
  • 19
  • 69
  • 87
3
votes
4 answers

Predicting the length of an encrypted string

I am using this for encryption: http://msdn.microsoft.com/en-us/library/system.security.cryptography.rijndaelmanaged.aspx Is there a way I can predict what the encrypted text will look like? I am converting the encrypted output to text so I can …
mrblah
  • 99,669
  • 140
  • 310
  • 420