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

Why does RijndaelManaged 256 bit is giving me "specified key is not a valid size for this algorithm" error?

I'm unable to make the C# RijndaelManaged encryption work with PHP mcrypt_encrypt as I kept getting "Specified key is not a valid size for this algorithm". The PHP specification use 256 bit, with ECB cipher mode. My understanding is Initization…
fletchsod
  • 3,560
  • 7
  • 39
  • 65
0
votes
1 answer

AES/Rijndael implementation for SQL Server 2000?

Do you know any function implementation I could use for decrypting data encrypted by AES/Rijndael in SQL Server 2000?
Victor Rodrigues
  • 11,353
  • 23
  • 75
  • 107
0
votes
2 answers

Encrypting/decrypting some file types with Rijndael 256 (CakePHP Security library) garbles contents

I am using CakePHP's Security::rijndael() function to encrypt and decrypt text and files. I previously wrote some code using mcrypt directly, which worked in the same way, but then I found Security::rijndael and realised I had reinvented the wheel.…
Will
  • 1,893
  • 4
  • 29
  • 42
0
votes
1 answer

How to use PKCS7 with BouncyCastle Rijndael in .Net

I'm working on a project that requires me to cipher some data using Rijndael, CBC and PKCS7... I have some examples that show me the initial data and the result I should get after applying Rijndael... I tried using .Net RijndaelManaged class but got…
0
votes
1 answer

Breaking Rfc2898DeriveBytes key with input password but without salt

I am using C# RijndaelManaged class for AES encryption. The key and IV are generated from input password and salt using Rfc2898DeriveBytes class. My question is, how difficult would it be to break encryption if someone obtained input password but…
SoftwareFactor
  • 8,430
  • 3
  • 30
  • 34
0
votes
1 answer

Decoding Rijndael with node.js

I have to decode a rijndael 128 string the string can be successfully using this online tool http://www.tools4noobs.com/online_tools/decrypt/ with theses parameters : Algorythm rijndael 128 Mode : CBC Decode the output using base64 I have to…
Nico AD
  • 1,657
  • 4
  • 31
  • 51
0
votes
1 answer

Calculate Maximum Length of MCrypt IV and Hash?

I have been doing some research on creating some different hashes, etc. I am aware of the password_hash() function, however I'm currently creating an initialization value using mcrypt. The issue that is arising is some of the hashed password being…
Brandon White
  • 997
  • 9
  • 22
0
votes
1 answer

Why does decryption not return the expected value?

When using c# rijndael to decrypt a string that was previously encrypted and saved in sql server ce, I get nothing back from decryption. I can tell from debugging and checking the database that the decrypted string appears to be saved as expected…
user3155083
  • 31
  • 1
  • 6
0
votes
0 answers

Encrypt and decrypt a string (202011), part 2: consistency and db checks

I have a follow-up question to another question, Encrypt and decrypt a string, posted by someone else. I tried out the code posted by Brett, the one that has 190 up votes (and counting). What I noticed is that it is possible that with the same text,…
Sarah Weinberger
  • 15,041
  • 25
  • 83
  • 130
0
votes
1 answer

serpent encryption - better than rijndael?

Is Serpent-256 better than Rijndael-256 in terms of security? (speed doesn't matter) Would Serpent encryption combined with SHA-512 be enough to safeguard sensitive data? And to what extent? (SECRET, TOP SECRET, CLASSIFIED etc.) Moreover, Rijndael…
Laur Florin
  • 17
  • 1
  • 2
0
votes
2 answers

Creating custom length password in Rijndael Cryptography Algorithm

I'm using c# for implementing Rijndael algorithm to encrypt/decrypt files. Below is my code: private void EncryptFile(string inputFile, string outputFile, string password) { try { UnicodeEncoding UE…
0
votes
2 answers

Decrypting using rijndael and C# issue

I am encrypting some text and converting it to base64 and upon decryption I appear to have some odd characters as it blocks the rest of the output... For example, I want to encrypt 10,2013-12-16 10:22:24,1387189344 which converts to…
Anonymous
  • 575
  • 1
  • 4
  • 11
0
votes
2 answers

Rijndael Encryption/Decryption C# vs PHP

I'm trying to encrypt data on client side(C#) then transmit it to the server through POST and decode it at the server side(PHP). For this test purpose I'm also attaching to the POST all values were used on the client side to match it for the…
Bryksin
  • 2,322
  • 3
  • 19
  • 31
0
votes
2 answers

Android Rijndael-256 not working

I've got this code to decrypt a php (mcrypt) token. The problem is, that the decode method always uses Rijndael-128 not -256. When I encode on the php side with -128, I can decode in Android. When using 256 its not working. (getHash returns a…
Silas
  • 37
  • 7
0
votes
1 answer

Must symmetric keys and initiliazation vectors always be 128, 192, or 256 bits?

The following string contains 20 bytes (160 bits). Do I have to make my keys and initialization vectors 128,192, or 256 or is there something I can do to make it 256 and keep the same key: byte[] bbb =…
Xaisoft
  • 45,655
  • 87
  • 279
  • 432