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
0
votes
2 answers

Strange Error in .net Application. - RijndaelManaged

During a recent load test, I've been getting some strange "Index Out of Range Exception" Stack trace: at System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]&…
Chris Cudmore
  • 29,793
  • 12
  • 57
  • 94
0
votes
1 answer

Rijndael file encryption / decryption

I've spent the last few days creating a file encryption / decryption class based on the Rijndael encryption standard available through the RijndaelManaged class and have scoured all the resources and examples I could find. The examples were either…
Storm
  • 1,848
  • 4
  • 20
  • 39
0
votes
1 answer

how to store my encryption key in a secure way

I am currently working on an application ASP.net MVC5 hosted in Microsoft azure in which I need to stock numerous passwords. I think I can not use the hash because I need to be able to get the password. For the encryption/decryption of these…
0
votes
0 answers

How to decrypt using a MemoryStream rather than FileStream?

Based on this Encryption/Decryption code sample: /// /// Steve Lydford - 12/05/2008. /// /// Encrypts a file using Rijndael algorithm. /// /// /// private void…
WizardingStudios
  • 554
  • 2
  • 7
  • 22
0
votes
0 answers

What does RijndaelManaged encryption do with invalid key sizes

We are trying to integrate with a legacy c# application that uses RijndaelManaged for symmetric encryption. However it appears that they have used a 13 byte string as an encryption key! The code is basically: var initVectorBytes =…
Korny
  • 1,988
  • 1
  • 18
  • 16
0
votes
2 answers

Encrypted text using libmcrypt under Linux is different length when using RijndaelManaged under .NET

I am trying to pass encrypted data from a Linux system to a Windows system. On the Linux system I am programming in C and using the libmcrypt library. I am using Rijndael-128 in CBC mode and my code is based upon the example here…
0
votes
1 answer

Why does RijndaelManaged 256 bit is giving me "specified key is not a valid size for this algorithm" error?

I'm unable to make the C# RijndaelManaged encryption work with PHP mcrypt_encrypt as I kept getting "Specified key is not a valid size for this algorithm". The PHP specification use 256 bit, with ECB cipher mode. My understanding is Initization…
fletchsod
  • 3,560
  • 7
  • 39
  • 65
0
votes
2 answers

Encrypt RijndaelManaged 128 in unity c# and Decrypt in Node.JS

I'm looking for a way to encrypt a byte array in unity c# and decrypt on a node.js server. I'm open to any implementation of either but I have currently gone with the below code which encrypts/decrypts fine in unity but I receive the…
Tristan
  • 3,845
  • 5
  • 35
  • 58
0
votes
0 answers

C# RijndaelManaged cryptographic storage key

my doubt is about the key to decrypt a encrypted string, without the same key used to encrypt the string i dont get the original string ok, but I need to protect this key not use her in hardcode because any hacker could decompiling a dll and see…
Alan
  • 5
  • 5
0
votes
1 answer

AES Encryption KEY conversion from python key to C#

I have a file encrypted with AES in python and its key is defined in code as: key = '\x14\x15\xa2\xf6\xb6\x17\x4a\x58\xb6\x17\x4a\x58\xb6\x17\x4a\x58' #print binascii.hexlify(key) aes = AES.new(key, AES.MODE_ECB) However my C# code takes key…
JoshuaJeanThree
  • 1,382
  • 2
  • 22
  • 41
0
votes
1 answer

Breaking Rfc2898DeriveBytes key with input password but without salt

I am using C# RijndaelManaged class for AES encryption. The key and IV are generated from input password and salt using Rfc2898DeriveBytes class. My question is, how difficult would it be to break encryption if someone obtained input password but…
SoftwareFactor
  • 8,430
  • 3
  • 30
  • 34
0
votes
2 answers

Encrypting passwords for use in Database AES or RijndaelManaged?

I am having a dilemma in choosing which encryption to use. I have to store passwords in a database. I would like to encrypt the passwords. I am using C# and am looking for reasons between AES and RijndaelManaged. I have looked for a succinct…
user3008146
0
votes
1 answer

PHP function to decrypt a VB.NET RijndaelManaged class encryption

I have the following Visual Basic .NET function that is used to encrypt a file. This function is from third party so I cannot alter the original code. Dim bytes As Byte() = New UnicodeEncoding().GetBytes("12345678") Dim fileStream1 As FileStream =…
0
votes
1 answer

AES Missing Mode

I'm using AES on WP8 (Windows Phone 8) in C# on Visual Studio, and System.Security.Cryptography does not contain the attribute 'Mode' for AESManaged. I've looked up this problem for the past 3 days now, and haven't found any reference or anything…
0
votes
1 answer

Encryption using RijndaelManaged in asp.net c#

I used RijndaelManaged encryption for encrypt password. I used this this encrypt and decrypt code. http://msdn.microsoft.com/en-us/library/system.security.cryptography.rijndaelmanaged(v=vs.110).aspx Few questions i need to clarify What is the use…
Bruce
  • 8,609
  • 8
  • 54
  • 83