Questions tagged [rijndael]

Rijndael is a block cipher that won the Advanced Encryption Standard competition. A subset of it was standardized as AES (FIPS 197) in October 2000.

Rijndael is a variable blocksize (only 128 bits standardized in AES), variable keysize (only 128,192 and 256 bits in AES) block cipher. The number of rounds is key-size dependent.

Rijndael is not widely supported, most cryptography libraries supporting only the AES subset. The exception being the .NET platform which supports more block sizes. Keep in mind that using a non AES compatible blocksize/keysize combination can lead to interoperability nightmare and that the security of Rijndael hasn't been widely studied outside of the AES subset.

https://learn.microsoft.com/en-us/archive/blogs/shawnfa/the-differences-between-rijndael-and-aes explains the difference between the AES standard, .NET implementation and the original Rijndael cipher.

430 questions
0
votes
0 answers

Padding is invalid and cannot be removed aes

I have searched solutions on this website but none solved my problem. Sometimes I recieve "padding is invalid and cannot be removed" exception. I don't know what to do. When I tried some solutions, there was empty decrypted text or it didn't…
Robert
  • 19,800
  • 5
  • 55
  • 85
0
votes
2 answers

Encrypting and decrypting a string using Rijndael

Before I start, I know there are a lot of similar questions on stackoverflow, but the majority of the answers consist of a large section of code with no explanation or help to aid the user. What I need to do is rather simple, take a string as input…
Harvey
  • 319
  • 1
  • 4
  • 8
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
0
votes
0 answers

PHP decrypt with Rijndael-128

I have a function in php which decrypt as the title. This function decode from base64 and decrypt correctly: function decrypt($base64encoded_ciphertext) { $key = 'a16byteslongkey!a16byteslongkey!'; $plaintext =…
Matteo Gobbi
  • 17,697
  • 3
  • 27
  • 41
0
votes
1 answer

Is this Rijndael secure enough for use in production systems?

Found an example of how to implement Rijndael on http://www.obviex.com/samples/Encryption.aspx Is this code secure enough for production systems? using System; using System.IO; using System.Text; using System.Security.Cryptography; This class uses…
tom
  • 1,822
  • 4
  • 25
  • 43
0
votes
0 answers

Encrypt and decrypt the dataset

I'm loading the data into dataset form SQL Server. Now I wanna this data to be write in XML file in encrypted form and save it somewhere in disk. On reading this XML into dataset, I wanna dataset to be encrypt again. I have used "RijndaelSimple…
Rajeev Kumar
  • 4,901
  • 8
  • 48
  • 83
0
votes
1 answer

PHP: decrypting AES in Counter mode with mcrypt

I have a string encrypted with AES in Counter mode, it wasn't done with PHP and I can't make mcrypt to decode it :( there's a class that works as expected: http://www.movable-type.co.uk/scripts/aes.html (see bottom of the page), but it's slow so I…
Daniel
  • 4,272
  • 8
  • 35
  • 48
0
votes
1 answer

.NET Rijndael encryption key too large?

I have received a SQL server database with passwords. This database is coming from a .NET website. I am rebuilding the website to PHP, so I would like to use my own encryption algorithm for the passwords. To do so, I tried to decrypt the passwords…
Frank
  • 530
  • 5
  • 15
0
votes
1 answer

PHP & Silverlight Cryptography Challenge

OK, I give up. I think I will leave it to the crowd-sourcing machine. Can somebody make a PHP 5 equivalent of anyone of the 2 classes below? (I mean with that both encrypted Silverlight Cryptography Class 1: Public Class AES128Helper Public…
0
votes
3 answers

Problems with conversion from Int to Byte (Java)

I am developing an app for Android. In this app, you must use the algorithm for encryption / decryption Rijndael. To use this algorithm, I need to mount the IVs. In the case is an array of bytes. So far so good. The problem is that I have to use the…
Taynã Bonaldo
  • 621
  • 9
  • 17
0
votes
1 answer

Problems with the key encryption / decryption AES (Rijndael)

I'm working on a Android project that uses the AES algorithm (Rijndael) to encrypt and decrypt information trafficked. WS I consume has a fixed key for encryption and decryption. So I have to have the same key in the source code. However, this key…
Taynã Bonaldo
  • 621
  • 9
  • 17
0
votes
1 answer

Encryption / Decryption using Rijndael with key 256bit on Android

I am developing an Android application that consumes a WS. For exchange of information between the android application and WebService, you must use the algorithm encryption / decryption Rijndael with 256 bit key. That is, all the information…
Taynã Bonaldo
  • 621
  • 9
  • 17
0
votes
3 answers

Rijndael Encryption issues

I don't know what I'm doing wrong but I've been trying to get this thing working for about 4 hours now and I just can't get it to work... this just gives me the error: "Please suppy a correct password" when I try to decrypt. Encryption seems to work…
user1071461
0
votes
1 answer

Rijndael or AES to match java encryption - with salt and key

I need to encrypt a string using a salt and a key to match a java encryption so that the 3rd party provider can decrypt the values on the other side. I have tried several StackOverflow articles as I am no expert in encryption and just cannot get…
czechman
  • 31
  • 4
0
votes
1 answer

Decrypting an AES256-rijdeal encrypted file with initialization vector

I've got a tricky situation at the moment. I need to create an android method that will decrypt an encrypted file that has been encrypted like this: AES256 (Rijndael) Cipher-Block-Chaining (CBC) using an initialization vector of 16 bytes that look…
Pieter888
  • 4,882
  • 13
  • 53
  • 74