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
40
votes
3 answers

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. I had my code working before, but something changed and I cannot quite figure it out. When I run my code,…
Vladimir Kozhedubov
33
votes
6 answers

How to generate Rijndael KEY and IV using a passphrase?

How to generate Rijndael KEY and IV using a passphrase? The key length must be in 256 bits.
Predator
  • 1,267
  • 3
  • 17
  • 43
22
votes
3 answers

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 disable it. It is a government computer, so I'm not sure how that will fly. I've seen posts on the msdn…
SwDevMan81
  • 48,814
  • 22
  • 151
  • 184
17
votes
4 answers

Rijndael support in Java

We have a requirement to do some Rijndael development in Java. Any recommendations for articles, libraries etc. that would help us? Any pointers to keystore maintenance and how store the keys securely? Edit: It would need to be open source.…
rbrayb
  • 46,440
  • 34
  • 114
  • 174
16
votes
1 answer

How to use Rijndael algorithm with 256 long block size in dotnet core 2.1

I'm trying to encrypt a string with RijndaelManaged in order to send it to a third-party service. I've implemented the procedure in older versions of .Net framework (4.5, 4.6.x) like below: RijndaelManaged rm= new RijndaelManaged(); rm.KeySize =…
thirdDeveloper
  • 855
  • 1
  • 10
  • 30
14
votes
3 answers

How to encrypt in VBScript using AES?

I am looking to encrypt some data using Rijndael/AES in VBScript using a specific key and IV value. Are there any good function libraries or COM components that would be good to use? I looked at CAPICOM; it allows a passphrase only, and won't allow…
Jon
12
votes
4 answers

Rewrite Rijndael 256 C# Encryption Code in PHP

I have an encryption/decryption algorithm written in C# - I need to be able to produce the same encryption in PHP so I can send the encrypted text over HTTP to be decrypted on the C# side. Here is the C# code for the encryption. this.m_plainText =…
Derek Armstrong
  • 129
  • 1
  • 3
12
votes
3 answers

Decrypting the .ASPXAUTH Cookie WITH protection=validation

For quite sometime I've been trying to decipher the ASP .ASPXAUTH cookie and decrypt it using PHP. My reasons are huge and I need to do this, there is no alternative. In PHP so far I have successfully managed to read the data from this cookie, but…
TheFrack
  • 2,823
  • 7
  • 28
  • 47
12
votes
2 answers

Figuring out the exact key created by PHP's mcrypt

A PHP application I'm maintaining uses Rijndael_256 with EBC_MODE encryption with mcrypt. Fun has it that the key isn't 256 bits long, but only 160. According to the mcrypt_encrypt documentation the key is padded with \0 to get the required size if…
Htbaa
  • 2,319
  • 18
  • 28
11
votes
2 answers

Rijndael 256 Encrypt/decrypt between c# and php?

UPDATED I have made the changes to the C# code so it uses a block size of 256. but now the hello world looks like this http://pastebin.com/5sXhMV11 and I cant figure out what I should use with rtrim() to get ride of the mess at the end. Also when…
arbme
  • 4,831
  • 11
  • 44
  • 57
11
votes
2 answers

Decryption Exception - length of the data to decrypt is invalid

I am working in a C# application. We have common methods to store data on a file. These methods encrypt the data and store them on the file system. when we need the data, ReadData method decrypts the data and returns me plain text. This code works…
Kevin Morocco
  • 179
  • 1
  • 2
  • 10
9
votes
4 answers

How to store the key used to encrypt files

I'm playing around with an app to backup files to "the cloud" :) and I want to encrypt the files before I store them. That part I have covered, but as this app will be monitoring folders for change and uploading the changed files I need to store the…
Christian Sparre
  • 955
  • 3
  • 15
  • 25
9
votes
1 answer

Rijndael 256 encryption: Java and .NET do not match

I need to translate a powershell script with Rijandael encryption to Java. Here is the source powershell code: [Reflection.Assembly]::LoadWithPartialName("System.Security") Add-Type -AssemblyName System.Web $sKy = "bbee9a3e8e44e28edb4539186d182aaa"…
anka976
  • 111
  • 2
  • 9
8
votes
3 answers

Delphi DEC library (Rijndael) encryption

I am trying to use the DEC 3.0 library (Delphi Encryption Compedium Part I) to encrypt data in Delphi 7 and send it to a PHP script through POST, where I am decrypting it with mcrypt (RIJNDAEL_256, ECB mode). Delphi part: uses Windows, DECUtil,…
binar
  • 1,197
  • 1
  • 11
  • 24
8
votes
1 answer

Php Decrypt a String from C# .NET RIJNDAEL 256

Fixed it. $data = base64_decode(str_replace(' ', '+', $_GET['data'])); for whatever reason, Php was converting the +'s from the GET variablesinto spaces -- I am trying to decrypt a string that is being decrypted in C#.NET. The results of the code…
ActionOwl
  • 1,473
  • 2
  • 15
  • 20
1
2 3
28 29