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

C# Length of data to decrypt is invalid

There are quite a lot of similar questions on SO about this but "none" match my problem. I a creating a file which is filled with encrypted random bytes. Then within this file at a specific location I write a few encrypted bytes. When I attempt to…
Dave Gordon
  • 1,815
  • 4
  • 30
  • 52
0
votes
1 answer

Compare AES encryption OpenSSL versus .NET(RijndaelManaged)

I need to encrypt a URL. According the specs of the URL it should be (Rijndael) encoded using CBC encryption mode, using an IV of 0., PKCS7 padding and a key length of 128-bit. The decryption of the URL is done in a .NET environment using the…
Frank Kaaijk
  • 293
  • 1
  • 3
  • 12
0
votes
0 answers

AES 128 Bit IOS Encryption

I am new to encryption in IOS. I've String and i want to encrypt it using AES-128 bit (rijndael algorithm) in IOS. I have found many links but did not get the exact answer.What is the best way to do that
Piyush matta
  • 109
  • 6
0
votes
0 answers

C mcrypt works / decrypt not using rijndael 128 (aes)

I'm trying to use a small function to encode a "secret word" into a binary ciphered "string" and then convert this into base64 send it over the internet and decrypt it on the other side. This is my code: Encode Function: #include #include…
biergardener
  • 185
  • 1
  • 1
  • 11
0
votes
0 answers

How to encrypt Rijndael encoded data in a socket programming?

I am researching and studying about encryption and decryption in rijndael and AES. I have a question.how should we decrypt data in socket programming ? how should we send and use KEY and IV in a client and server program. I`ve read these codes in…
0
votes
1 answer

c# calling function with correct byte array

I've got this function I need to call to encrypt my byte array. The function needs the byte array to be encryptet, a byte array as password and another byte array as initialization vector. The function itself: public static byte[] Encrypt(byte[]…
dehner
  • 47
  • 1
  • 8
0
votes
0 answers

What does RijndaelManaged encryption do with invalid key sizes

We are trying to integrate with a legacy c# application that uses RijndaelManaged for symmetric encryption. However it appears that they have used a 13 byte string as an encryption key! The code is basically: var initVectorBytes =…
Korny
  • 1,988
  • 1
  • 18
  • 16
0
votes
0 answers

CRijndael only encrpyting first 32 bytes of longer string

I'm using CRijndael ( http://www.codeproject.com/Articles/1380/A-C-Implementation-of-the-Rijndael-Encryption-Decr ) for encryption using a null based iv (I know that's an issue but for certain reasons I'm stuck with having to use that). For strings…
avalore
  • 103
  • 1
  • 9
0
votes
0 answers

Read Rijndael encrypted file in memory itself to decrypt

I have a file which is encrypted using Rijndael encryption method. I want to decrypt in memory itself, instead of writing it to disk. So I tried using BinaryReader to read the file. But how to use BinaryReader and read the binary file so that i can…
IT researcher
  • 3,274
  • 17
  • 79
  • 143
0
votes
2 answers

Issues with decrypting data with Rijndael after sending through System.Net.Socket

I followed a tutorial from YouTube, http://tinyurl.com/ljvzjqk and http://tinyurl.com/os7vlgr, and tried to implement this in a client/server-project I am working on. I can encrypt and decrypt strings in the client program just fine, but when the…
dissar
  • 3
  • 2
0
votes
1 answer

Implementing rijndael and random encryption key in PHP

I was looking at mcrypt documentation and one of the examples was the following: $key = pack('H*', "bcb04b7e103a0cd8b54763051cef08bc55abe029fdebae5e1d417e2ffb2a00a3"); $key_size = strlen($key); echo "Key size: " . $key_size . "\n"; Given I have…
dwvaxaz
  • 49
  • 1
  • 9
0
votes
1 answer

Decrypted string is sometimes not same as encrypted source

class Auth extends MySQLi { public function aes_enc($encrypt, $mc_key, $iv) { $passcrypt = trim(mcrypt_encrypt(MCRYPT_RIJNDAEL_128, substr($mc_key, 0, 32), trim($encrypt), MCRYPT_MODE_CBC, $iv)); return $passcrypt; } public function…
The Onin
  • 5,068
  • 2
  • 38
  • 55
0
votes
3 answers

How can I retain carriage returns when I'm encrypting data?

I have this following setup, a textarea named with some data in it that may have carriage returns and another textarea that has style='display:none' in order to make it hidden as follows: