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
5
votes
2 answers

RIJNDAEL encryption with Java

I need to encode a cleartext in Java and php where the result must be the same. The following conditions are given: algorithm: RIJNDAEL-128 key: 1234567890123456 mode: cfb initialization vector: 1234567890123456 The following codes works and…
Paul
  • 547
  • 4
  • 13
  • 30
4
votes
5 answers

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 used free pieces of from Internet. The best seems to be http://www.frez.co.uk/freecode.htm#rijndael But the…
Fabrizio Accatino
  • 2,284
  • 20
  • 24
4
votes
2 answers

.Net and PHP Rijndael encryption not matching

At first i thought it was the padding since mcrypt uses zero padding but i changed the php to use PKCS7 and get the same exact results Can anyone help? I think it has something to do with the padding in the php Test output from .Net: Key:…
user940427
  • 43
  • 1
  • 3
4
votes
3 answers

Is it possible to NOT use the IV when implementing Rijndael decryption?

I am implementing a decryption of ciphertext using Rijndael's algorithm. Unfortunately, I have not got access to the encryption of the data and have only been provided with a password (to generate the key with) and the type of algorithm. I do not…
4
votes
2 answers

AES Rijndael and little/big endian?

I am using the public domain reference implementation of AES Rijndael, commonly distributed under the name "rijndael-fst-3.0.zip". I plan to use this to encrypt network data, and I am wondering whether the results of encryption will be different on…
Philip Bennefall
  • 1,477
  • 5
  • 20
  • 33
4
votes
1 answer

How can JAVA decrypt data which was base64 encoded and RIJNDAEL_256 encryped by PHP?

I need to migrate data from a PHP to a JAVA application. The data has been encrypted using this PHP function: function encrypt($text, $encryptionKey) { return utf8_encode(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $encryptionKey, $text,…
Holly
  • 1,305
  • 2
  • 15
  • 30
4
votes
2 answers

How to decrypt c++ the aes Rijndael CBC using kotlin properly?

Md5 hashed value (salt+password) hashed: "89d1ed22aac58f5bbea53b2fde81a946" (String)(32 characters) Original string value orginal: "test" (String) Encryption Key & IV (Bytes) Key: "encryptionkeyhere" (String) 16 bit key:…
Cracker
  • 51
  • 5
4
votes
3 answers

Rijndael Padding Error

Hello I am trying to encrypt / decrypt a string via Rijaendal. I simply can't figure out why the decryption blows up. I always end up with an incorrect padding error. One thing that throws me off is the result of my encryption which I return as HEX…
jcs
  • 43
  • 1
  • 3
4
votes
2 answers

AES encryption with Go and PHP

I am using AES encryption in Go and PHP. But both the languages does not encrypt/decrypt each other ciphertext. Following i have tried in php class Crypto { private $encryptKey = "keyforencryption"; private $iv = 'ivusedforencrypt'; …
Pranav
  • 174
  • 1
  • 8
4
votes
1 answer

Converting C# cryptography to Java

I have been tasked with converting a C# cryptography method to Java and am stuck. I know the C# codes works, but I am having trouble getting my Java code to work. Here is the C# code: private const int Nb = 4; // Legal values: 4 = 128-bit…
jlars62
  • 7,183
  • 7
  • 39
  • 60
4
votes
3 answers

Password encryption/decryption between classic asp and ASP.NET

I have 2 websites: one written in classic asp and another written in ASP.NET (1.1 framework). Both applications use a login mechanism to validate user credentials based on a shared database table. Up to now passwords are stored in a 1-way MD5 hash,…
4
votes
1 answer

Perl & Ruby exchange AES encrypted information

What is the equivalent to Crypt::CBC in Perl for Ruby? Note: This problem similar to PHP/Perl at stackoverflow:655691. Perl Version use Crypt::CBC; use MIME::Base64::Perl; my $cipher = Crypt::CBC->new( -key =>…
Jirapong
  • 24,074
  • 10
  • 54
  • 72
4
votes
3 answers

Public Overrides Function GetBytes() As Byte() is obsolete

What does the poet try to say? Public Overrides Function GetBytes() As Byte() is obsolete: Rfc2898DeriveBytes replaces PasswordDeriveBytes for deriving key material from a password and is preferred in new applications. Should i replace this…
OrElse
  • 9,709
  • 39
  • 140
  • 253
3
votes
2 answers

How secure is VB.NET Rijndael Managed Encryption or AES?

I am using a slightly modified version of this code. to create a mission critical application. That files that will be encrypted are very important. This has to be done from scratch because there are some other things that has to be done along with…
esafwan
  • 17,311
  • 33
  • 107
  • 166
3
votes
1 answer

Inconsitent behaviour with RijndaelManaged encryption

I am experiencing a strange problem with RijndaelManaged. Basically I have a new instance of it where I set up the CipherMode, Padding, IV and Key. Then I create another instance and assign the same values of the following properties from the…
Lord of Scripts
  • 3,579
  • 5
  • 41
  • 62
1 2
3
28 29