Questions tagged [rijndaelmanaged]

0 votes
0 replies
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...
asked 4 months ago
0 votes
0 replies
Trying to Decrypt 256 blocksize string using BouncyCastle in .net core. Getting Invalid pad Count Error
I'm trying to decrypt a 256 block size string using Bouncycastle in .net core which is encrypted in .net framework using Rijndael. I followed ht...
1 votes
2 replies
Decrypt Access token using PHP for C# Encryption
I have an API URL with specific access token which was encrypted with C#(Below Code) and I want to Decrypt it using PHP post request by passing a...
asked 8 months ago
0 votes
1 replies
How to fix AES encrypt function adding \0\0\0 to the end of encrypted text?
When I decrypt an encrypted username using AES encryption it shows a bunch of "\0\0\0" at the end of the decrypted username. Is there a way to no...
asked 3 months ago
2 votes
1 replies
How do i use random salt and random iv in aes encryption and decryption algorithm?
is it possible to use random salt and random iv in encryption and decryption algorithm using AES or RijndaelManaged? I was learning about encryp...
asked 5 months ago
1 votes
0 replies
Encrypted in C#. Need decryption in NodeJS
I barely have any knowledge on c#. I have a scenario where I have encryption and decryption in c# as follows. But, I want to implement same decry...
0 votes
0 replies
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 = n...
0 votes
1 replies
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 f...
asked 7 months ago
1 votes
0 replies
c# RijndaelManaged 10 times sower than Java equivalent (AES/CFB8/NoPadding)
While debugging the performance of my C# application I noticed that it's a lot slower than it's Java equivalence. After looking into it the probl...
2 votes
1 replies
AES decrypt text in java, encrypted in C#
I have to decrypt text in JAVA, encrypted in C# (AES, RijndaelManaged). After several days of reading and searching solutions, and a lot of sta...
asked 9 months ago
0 votes
1 replies
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...
asked 9 months ago
3 votes
1 replies
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 wit...
asked 9 years ago
26 votes
2 replies
Specified initialization vector (IV) does not match the block size for this algorithm
I am working on a base encryption method. I am using RijndaelManaged. I got this code from somewhere a long time ago, but can't remember where....
asked 11 months ago
13 votes
2 replies
Thread Safety of .NET Encryption Classes?
I have a high-level goal of creating a static utility class that encapsulates the encryption for my .NET application. Inside I'd like to minimiz...
6 votes
2 replies
C# AES-256 Encryption
I am using RijndaelManaged to make a simple encryption/decryption utility. This is working fine, but I am trying to get it integrated with anothe...
asked 10 years ago
19 votes
1 replies
RijndaelManaged supports 128-256 bit key, what key size the default constructor generator?
For new RijndaelManaged(), the documentation says it supports keys of 128 bits and up to 256 bits. When you instantiate new RijndaelManaged(), i...
asked 10 years ago
4 votes
6 replies
Rijndael / AES from C# to VB6
I need to encrypt a byte array in VB6 and decrypt it in C# (NET 2.0). And viceversa (C# to VB6). In C# I used RijndaelManaged class. In VB6 I us...
asked 10 years ago
5 votes
1 replies
Why can't I encrypt multiple strings using one encryptor on MonoTouch?
I'm using the following (trimmed-down) class to encrypt some data before sending it from an iPad app to a WCF web service. public class FlawedAl...
16 votes
4 replies
When will C# AES algorithm be FIPS compliant?
Right now the only way I can get the RijndaelManaged algorithm to work on a computer with the Local Security Setting for FIPS turned on, is to di...
asked 10 years ago
118 votes
10 replies
Using AES encryption in C#
I can't seem to find a nice clean example of using AES 128 bit encryption. Does anyone have some sample code? 118 Pretty good article on...
asked 2 years ago
7 votes
8 replies
ASP.NET 2.0 RijndaelManaged encryption algorithm vs. FIPS
I'm running into an issue with an ASP.NET 2.0 application. Our network folks just upped our security, and now I get the floowing error whenever...
asked 10 years ago
6 votes
2 replies
Using Rijndael to encrypt/decrypt files
I need to transfer xml files and they are required to be encrypted. I have found some examples think I'm close but when I decrypt the file I end...
asked 5 years ago
12 votes
2 replies
How to use Rijndael encryption with a .Net Core class library? (Not .Net Framework)
How do we use Rijndael encryption in a .Net Core class library? (Not a .Net Framework Class Library) We need to create a shared .Net Core librar...
3 votes
2 replies
AesManaged and RijndaelManaged
Im currently developing a Silverlight application that connects to an old webservice. Our old webservice uses an encryption tool which silverligh...
15 votes
3 replies
RijndaelManaged “Padding is invalid and cannot be removed” that only occurs when decrypting in production
I know other questions have been asked on this but none so far have provided a solution or are exactly the issue I have. The class below handles...