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

Receiving 'The input is not a complete block' error, tried everything I can find on google. Rjindael Encryption in .NET

Mornin', I'm trying to just get basic encryption working using System.Security.Cryptography.RjindaelManaged. I have google for this error and cannot find the problem, or what I am doing wrong. All I am attempting to do is encrypt a string, and then…
fMinkel
  • 179
  • 2
  • 5
  • 12
0
votes
1 answer

Appending IV to an

I am in the process of writing a small encoding class which takes a byte[] array, and cyphers it. As the IV can be made public, I wish to prepend it to the ciphertext to use for decryption. Following the MSDN Documentation and some SO Post source…
Daniel Park
  • 3,903
  • 4
  • 23
  • 38
0
votes
1 answer

Encrypt 2 pieces of data separately and export as one file via Rijndael in C#

There are 2 buttons which will generate 2 piece of data. What I need to achieve is encrypt them separately and export to same file. Then I need be able to decrypt it later. Is it possible to use CBC mode? Using the same stream to encrypt the 1st…
Kelvin
  • 1,103
  • 2
  • 11
  • 16
0
votes
1 answer

Compression and encryption SOAP - ASP.NET web service

I need advice. I zip and crypt SOAP message on web service and client side. Client is winforms app. If I only crypt SOAP message, it works good. If I only zip SOAP message it also works good. I use SOAP extension on crypt and zip SOAP. I use AES…
Martin
  • 11
  • 1
  • 4
0
votes
1 answer

Decrypt text iOS

How to decrypt a text got as a response from the server. I have the below parameters that was used to encrypt the string with Rijndael AES algorithm. passPhrase = "Jxy37Kn@" saltValue = "M9!1lj5" hashAlgorithm = "SHA1" passwordIterations = 2…
Ganesh Nayak
  • 802
  • 11
  • 38
0
votes
1 answer

Thread Safety RijndaelManaged, ICryptoTransform.TransformFinalBlock?

Lets say we have this code that runs in the constructor: Dim initVectorBytes As Byte() = System.Text.Encoding.ASCII.GetBytes(initVector) Dim saltValueBytes As Byte() = System.Text.Encoding.ASCII.GetBytes(saltValue) Dim passPharse As…
Peter
  • 37,042
  • 39
  • 142
  • 198
0
votes
1 answer

Storing encrypted direct debit details with RijndaelManaged

I'm by no means a security expect and would like some help/pointers on the following scenario. Just to be clear, this question is more about encryption than bank details. I'm needing to store UK direct debit details in a secure way in order that it…
David K
  • 233
  • 1
  • 10
0
votes
1 answer

Is knowing the salt used in Rfc2898DeriveBytes a security risk?

Sorry if this is a duplicate but I could not find anything that was not in some way related to DB encryption. My problem is not with a DB. I have a set of files encrypted using RijndaelManaged. In the encrypting code I am using Rfc2898DeriveBytes to…
Tallmaris
  • 7,605
  • 3
  • 28
  • 58
0
votes
1 answer

decryption with rijndeal algorithm gives padding error

i am using rijndeal to encrypt and decrypt some data! but it gives me this error : Padding is invalid and cannot be removed. i searched much but nothing help me to solve this error! tis is my encrypt/decrypt codes: public string Encrypt(string…
0
votes
1 answer

RijndaelManaged doesn't encrypt

I'm trying to encrypt a buffer with RijndaelManaged class without any success. It always return byte[0]. Here's the code: public byte[] Encrypt(byte[] data, byte[] key) { using (var ms = new MemoryStream()) { …
Davita
  • 8,928
  • 14
  • 67
  • 119
0
votes
0 answers

Cryptography - Security of RijndaelManaged algorithm and where to store keys

I have the following code to encrypt and decrypt data using the RijndaelManaged in .NET. public string EncryptString(string ClearText) { byte[] clearTextBytes = Encoding.UTF8.GetBytes(ClearText); SymmetricAlgorithm rijn =…
Matthew
  • 4,477
  • 21
  • 70
  • 93
0
votes
2 answers

Does Rijndael always throw an exception if the password isn't correct?

I'm using Rijndael to encrypt/decrypt some sensitive images that will be used on some documents. I'm trying to be absolutely sure that the password provided works and that, by some quirk of fate, an incorrect password will result in a corrupted…
user1228
0
votes
2 answers

RijndaelManaged Key generation

I need to encrypt data and store it in a file and later be able to decrypt it back. For this I am using RijndaelManaged class. Now I do not want to keep the key hardcoded in the code. After some googling I found this method - Here the key is…
Happy Go Lucky
  • 607
  • 1
  • 9
  • 17
0
votes
1 answer

RSA Decrypt returns different byte[] results for same we

As illustrated in http://msdn.microsoft.com/en-us/library/vstudio/system.security.cryptography.rsacryptoserviceprovider.encrypt(v=vs.90).aspx I am trying to use an RSA key that is stored in a User Container to encrypt and decrypt a RijndaelManaged…
tspade
  • 1
0
votes
1 answer

How is it possible that Rijndael returns different result from string and byte[]?

Here is my code, first with string: byte[] concatBytes = Encoding.ASCII.GetBytes(key); byte[] keyBytes = Encoding.ASCII.GetBytes(key); for (int i = 0; i < 3; i++) { concatBytes = Encrypt(Encoding.ASCII.GetString(concatBytes), keyBytes); …
Adam Ivancza
  • 2,459
  • 1
  • 25
  • 36
1 2 3
17
18