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

Rijndael AES, addRoundKey, xor hex strings and store them as bytes

/*keyArray contains a line of cipherkey, and inputArray contains a text that is being encrypted.*/ public static void addRoundKey() { String keyEle = ""; String inputEle = ""; String result = ""; for(int col=0; col<4;…
Nayana
  • 1,513
  • 3
  • 24
  • 39
0
votes
1 answer

Matching RijndaelManaged encryption from CSharp in php

I know this question has been asked many times before, but I think my situation is unique, I have had many people attempt to help me from IRC already and still have no solution. Basically I am trying to match the encryption function from a .NET CS…
djdduty
  • 274
  • 1
  • 8
0
votes
1 answer

c# AES CBC using 2 methods to add 2 pieces of encrypted data into one file

The key issue is if I use a new cryptostream it will add new IV to second piece of data. Then this wont be ablt to decrypted. So I need to make sure the stream will use the last block of 1st data to encrypt the first block of 2nd piece of data. It…
Kelvin
  • 1,103
  • 2
  • 11
  • 16
0
votes
1 answer

C# rijndael stream writer issue

Just got some errors in code, which says the file is being used. What I need to achieve is add first part of encrypted data in file and then add second part of of evcrypted data in the same file. This file need to be decrypted later. I am pretty new…
Kelvin
  • 1,103
  • 2
  • 11
  • 16
0
votes
1 answer

Getting AES PHP & C# To Match

I've seen a few posts about this, but yet I can't seem to get this to work, any ideas? RESULTS: C# Encrypted string test = O6qzYiLPCpbXUf8PjMHpcg== php Encrypted string test = SdS1dN1ugyAVYGFzHiTayg== C# Code public static string…
Neo
  • 2,305
  • 4
  • 36
  • 70
0
votes
2 answers

After decrypting with RIJNDAEL, strings not equal

I'm using RIJNDAEL to encrypt/decrypt passwords and some other strings, but it doesn't work. This is my encrypt/decrypt function: function secreto($accion,$clave,$palabra) { //SETEO DATA EN 0 PORSIACA $data = 0; //INICIALIZO EL VECTOR $iv =…
hdezela
  • 536
  • 6
  • 16
0
votes
1 answer

Decrypt string with Rijndael return "System.SecureString" (as a string) but not the string

I'm using Rijndael Algorithm to encrypt strings (user passwords), but when I decrypt them, it returns me "System.SecureString", and not my decrypted password. I'm using this basic code: public static string DecryptString(string cipherText, string…
crocteamgg
  • 65
  • 2
  • 7
0
votes
1 answer

C# 2-way Encryption Class - Rijndael possible initialization vector issue (jibberish output)

I am having problems with an encryption class that I made: public static class Encryption { public static string EncryptToString(string TextToEncrypt, byte[] Key, byte[] IV = null) { return…
Victor Stoddard
  • 3,582
  • 2
  • 27
  • 27
0
votes
0 answers

How to depend length of Rijndael function output from input length?

I have function: function aes_encrypt($value, $key) { return base64_encode(Security::rijndael($value, $key, 'encrypt')); } Security::rijndael from cakephp Security component, which implement Rijndael 256-bit key encryption. I've store…
Vadim
  • 622
  • 3
  • 5
0
votes
1 answer

AES Cookie Data randomly not decryptable

I'm having a problem when writing and parsing some DATA out of stored cookies. Here are my crypt and decrypt functions (which I have found in another topic here). function decrypt($crypttext){ $crypttext = base64_decode($crypttext); …
Smoki
  • 551
  • 2
  • 9
  • 28
0
votes
1 answer

Converting Encoded byte[] to a printable string

I am encoding strings using C#'s Rijndael AES encryption. I generate a key and an IV, and use them to encode strings and values that I can then save to disk (I am using Unity3D's playerprefs). The problem I am facing is that the PlayerPrefs keys and…
David Menard
  • 2,261
  • 3
  • 43
  • 67
0
votes
1 answer

Wrong decryption of initial 16 bytes by Perl Crypt:Rijndael module

I am using a the Crypt::Rijndael module to decrypt some application data. I gave the encrypted data, encryption key and client IV as the input. Out of 432 bytes of application data, the first 16 bytes of the decrypted output is always wrong. use…
0
votes
1 answer

decryption with rijndeal algorithm gives padding error

i am using rijndeal to encrypt and decrypt some data! but it gives me this error : Padding is invalid and cannot be removed. i searched much but nothing help me to solve this error! tis is my encrypt/decrypt codes: public string Encrypt(string…
0
votes
1 answer

PHP mcrypt same trailing characters

When running this: var_dump(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, '12345', '1abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz', MCRYPT_MODE_ECB, mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB),…
Petah
  • 45,477
  • 28
  • 157
  • 213
0
votes
2 answers

VB.Net equivalent for Java Rijndael decryption method

I have a working java decryption function displayed below. The java source code for the RijndaelAlgorithm is the standard code you see all over the internet - for example:…