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
1 answer

Decrypting a string encrypted with Rijndael Managed object in Windows .Net in Objective-C on MacOS

I have some strings generated by encrypting a text string using Rijndael Managed class from System.Security.Cryptography in Windows .Net which I would like to decrypt using Objective C on MacOS. Using the CCCrypt method defined in CommCrypto.h, the…
SimonKravis
  • 553
  • 1
  • 3
  • 24
0
votes
2 answers

RijndaelManaged Decryption Issue

I support a huge C++ system developed originally in the early 1990's. (I have mentioned this system in other posts of mine) We are in the process of developing all new C# applications to replace the older C++ systems. Using TcpClient, unencrypted…
Jonathan Hansen
  • 423
  • 1
  • 7
  • 14
0
votes
1 answer

How to decrypt a Rijndael 128 encrypted text

I'm trying to decrypt a Rijndael-128 encrypted cipher, these are the values: Cipher: "QfJzZ9V6Jm43jYPiVaXP9mu+f88S/JC24saHbOMxxC8=" Key: "45744855535472525844494538555934", Mode: CBC Result should be: "abcd@1234" This website seems to decrypt the…
mahmoudmh
  • 51
  • 1
  • 7
0
votes
1 answer

RijndaelManaged, for a specific input, both sets of different keys can be decrypted

The methods of encryption and decryption come from Microsoft documentation. I have two different sets of keys. When I use key1 to encrypt and use key2 to decrypt, I expect a CryptographicException to be thrown, but it is actually a garbled…
Libron
  • 129
  • 2
  • 9
0
votes
0 answers

Getting error Length of the data to decrypt is invalid

internal string DecryptData(string iEncryptedText, string aesKey, string iv, int iKeySize = 128) { PasswordDeriveBytes pdb = new PasswordDeriveBytes(iv, new byte[] { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B,…
kartikDeo
  • 1
  • 1
0
votes
1 answer

C# Encrypting and Decrypting a text file

I'm trying to encrypt and then decrypt a file when needed, and read the file for use of the program. Still learning cryptography and I looked at several examples and tried this. I have managed to en- and decrypt string but sadly that did not work in…
Metzger
  • 93
  • 1
  • 13
0
votes
0 answers

Which is the proper way to convert a byte[] to a string in order to have the expected Rijndael format?

I have problem when I transform a byte[] to a string. I have used these ways so far: System.Text.Encoding.UTF8.GetString(byteArray); System.Text.Encoding.UTF8.GetString(byteArray); I use Rijndael in order to encrypt some parameters to send them…
LopDev
  • 823
  • 10
  • 26
0
votes
0 answers

Which are the differences between RijndaelManaged and Rijndael classes?

Which class of them should I use in order to encrypt a parameter and post it to an API Call? I have to encrypt some parameters first before sending them to the API and I do not know which class should I use.
LopDev
  • 823
  • 10
  • 26
0
votes
0 answers

RijndaelManaged class storing plain text password in process dump

Currently we have Desktop application in which we have login screen for Authentication. We are using username and password for authentication, Although we have encrypted the pass with RijndaelManaged class with SALT key. Code is mentioned below :…
0
votes
1 answer

How to make AesEncrypterHandler encrypt the same way as Aes does

I am trying to use AesCryptoServiceProvider to achieve the same encryption mechanism as Aes. Here is my AesCryptoServiceProvider version of it: public string version1(string plainText, string encryptionKey, string initializationVector) …
0
votes
1 answer

How to limit the maximmum length of the AES Encryption Password

I would like to limit the length of the encrypted output code like 8 or 10 or 12 character etc. I have created the very small encrypted coed using he "Advanced Encryption Standard (AES)" with Cryptography.SymmetricAlgorithm.IV. But the result of the…
skt
  • 449
  • 14
  • 32
0
votes
1 answer

Problem encrypting XML using RijndaelManaged key

I am trying to encrypt an XML element in an XML document. I came across THIS MSDN DOC which shows an approach of how to do this. If I use the code "as is" in this doc, it works. However, this demo code does not fit my scenario, where I need to save…
Cleve
  • 1,273
  • 1
  • 13
  • 26
0
votes
0 answers

Rijndael not decrypting correctly

We have an encrypted binary field in a SQL server DB with a key and we are trying to decrypt the file. It creates the PDF files that we need with the correct file names in the specified directory but when we try to open them we get an error that…
dangell82
  • 1
  • 1
0
votes
0 answers

Issues with Decrypt data with length and padding

I have issues to get the data decrypted and not sure what I do wrong as tried almost everything. private static byte[] AES_Encrypt(byte[] byteArray) { byte[] salt = GenerateRandomSalt(); MemoryStream fsCrypt = new…
user3763117
  • 327
  • 1
  • 5
  • 18
0
votes
0 answers

RijndaelManaged decrypt encrypted with 8 bytes key

I have the next code that perfectly works encrypting and decrypting in net framework even with a invalid key for RijndaelManaged, but now in the netCore it doesn’t work because its needs a 16 bytes key, I want to recreate the key that the library in…
tuxos
  • 1