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

Get password from a known key-iv-combination (RijndaelManaged in C#)

Is it possible to "calculate" a valid password string when the Key and the IV (as strings) for a RijndaelManaged-Key are known?
Yosh
  • 1
  • 1
0
votes
1 answer

AES Encryption failed on last line of file when using same FileStream as CryptoStream

I am trying to create an AES encryption method where the same file is read and write at the same time. Other codes I have read all create a new file, I don't want to have new file. Other encrypted line matched my reference output from separate…
WylieYYYY
  • 3
  • 1
  • 4
0
votes
0 answers

C# Rijndael Decryption code in Node.js getting error bad decrypt

Trying to convert C# Rijndael decryption code to Node.js but getting the error bad decrypt C# code for Decryption: RijndaelManaged RMCrypto = new RijndaelManaged(); byte[] data = Convert.FromBase64String(strCript.Replace(" ", "+")); byte[]…
0
votes
1 answer

RijndaelManaged CreateEncryptor works in VB.NET but errors in C#

I'm trying to convert an encryption class from VB.NET Framework to C# .Net Standard and for some reason I get an error as below when calling the CreateEncryptor method on an instance of RijndaelManaged in C#. Specified initialization vector (IV)…
fosbie
  • 852
  • 1
  • 11
  • 21
0
votes
1 answer

Restore RijndaelManaged key without using EntLibConfig.exe

I am working with an older application which uses the Enterprise Library Cryptography Application Block for data encryption. Currently with every new server which is setup we have to manually run EntLibConfig.exe (a ui app), import a key exported…
Brettski
  • 19,351
  • 15
  • 74
  • 97
0
votes
3 answers

Decrypting RijndaelManaged Encrypted strings with CryptDecrypt

Ok I'm trying to use the Win32 Crypto API in C++ to decrypt a string encrypted in C# (.NET 2) with the RijndaelManaged Class. But I'm having no luck at all i get jibberish or a bad data Win32 error code. All my keys, IV and salt match, I've looked…
user1333
0
votes
0 answers

Unable to get identical Rijndael encryption result in php and C#

An existing C# implementation encrypts a string by implementing RijndaelManaged() as follows: using System; using System.IO; using System.Security.Cryptography; using System.Text; namespace sample { class Program { static void…
Werner
  • 3,523
  • 1
  • 22
  • 21
0
votes
1 answer

Padding is invalid and cannot be removed exception and length of the data to decrypt is invalid. Rijndael

My requirement is like below. Step 1) I want to write 101 MB data in local file system by encrypting it in chunks of 10-10 MB. Step 2) While decrypting, I want to fetch 10-10 MB data from file and want to decrypt and want to pass 10-10 MB…
0
votes
1 answer

C# equivalent encryption decryption for Java

C# Code namespace MWS.DAL { public class StringHelpers { #region Constants private const char QUERY_STRING_DELIMITER = '&'; #endregion Constants #region Members private static RijndaelManaged…
AsinghrawatZ
  • 73
  • 1
  • 6
0
votes
1 answer

RijdaelManaged Encrypted byte[] different than Decrypted byte[] using same key/iv

Ok so I am attempting to code a byte[] before transmission and decode it after. I start out with "This is a super secret message" converted to byte[] and then encrypted by using RijdaelManaged. It goes from byte[30] (unencrypted) to byte[16] when…
0
votes
0 answers

Decrypt AES256 with 16-byte cipher

I'm trying to decrypt an encrypted base64-encoded string with C#. I have encrypted the string using the following online tool: http://encode-decode.com/aes256-encrypt-online/ For example, when I encrypt the text 'abcd' with the key 'zzzz', I get the…
Bart van der Drift
  • 1,287
  • 12
  • 30
0
votes
1 answer

What will be the C# equivalent of this php code?

Here is the PHP code that decrypts the content of…
Mainak
  • 469
  • 3
  • 9
  • 33
0
votes
2 answers

how to generate the same key when using crypto c# 4.0

hi im trying to encrypt and decrypt string value... i made it by using manual key like... private static byte[] _salt = Encoding.ASCII.GetBytes("123456789abcdefg"); and i created key and iv like Rfc2898DeriveBytes rfcDeriveBytes = new…
serim urhan
  • 31
  • 1
  • 5
0
votes
0 answers

Convert PHP Encryption algorithm to C#

I am trying to use a SSO solution in C#, where the documentation is only available in PHP. I have this PHP Code: function encrypt ($message) { $initialVector = "1234567890123456"; $key = md5($this->apiPassword); $crypt =…
Dominik G
  • 1,459
  • 3
  • 17
  • 37
0
votes
2 answers

CryptoJs encryption and c# decryption using RijndaelManaged - Error

I have a client side file encryption in javascript using CryptoJs. I have a server side file decryption using RijndaelManaged. If I do both encryption and decryption using CryptoJs, it is working fine. However, when I try to decrypt using C# code,…
Noob
  • 57
  • 3
  • 12