Questions tagged [rijndaelmanaged]

.NET Framework (1.1 and later) managed version of the Rijndael (AES) algorithm.

.NET Framework (1.1 and later) managed version of the Rijndael (AES) cryptographic algorithm. Any public static (Shared in VB) members of this type are thread safe.

Class: System.Security.Cryptography.RijndaelManaged

269 questions
0
votes
1 answer

Asp.net code not working for implementing rijndael encryption, decryption?

I'm reading a book entitled beginning asp.net security from wrox and I'm in this part where it shows a code snippet for using rijndael the problem this example is not included in the downloadable source codes. I decided to seek (professional)help…
Randel Ramirez
  • 3,671
  • 20
  • 49
  • 63
0
votes
2 answers

Convert vb.net byte to php

I have the following code in VB.net Dim bytIV() As Byte = {121, 241, 10, 1, 132, 74, 11, 39, 255, 91, 45, 78, 14, 211, 22, 62} I'm trying to convert it to php. $iv = array(121, 241, 10, 1, 132, 74, 11, 39, 255, 91, 45, 78, 14, 211, 22, 62); That…
shaiss
  • 2,000
  • 5
  • 22
  • 33
0
votes
1 answer

Any alternatives for this code to know the byte count?

okay so I have this code for decrypting files public static byte[] DecryptFile(string inputFile, string skey) { RijndaelManaged aes = new RijndaelManaged(); byte[] key = ASCIIEncoding.UTF8.GetBytes(skey); …
0
votes
1 answer

Encryption/decryption gives Invalid character in a Base-64 string

I have been working with encryption/decryption RijndaelManaged alogorithm. While encrypting a GUID we get "%" symbol in the middle of the encrypted algorithm. When I decrypt the same encrypted GUI i get a " Invalid character in a Base-64 string"…
None
0
votes
4 answers

"Specified initialization vector (IV) does not match the block size for this algorithm" using an CryptoStream

I've had troubles using an CryptoStream for my file encryption.. Code: public static void EncryptFile(string inputFile, string outputFile) { int num; string s = "PUPlr"; byte[] bytes = new UnicodeEncoding().GetBytes(s); …
Adam M
  • 113
  • 3
  • 13
0
votes
1 answer

Rijndael-256 Encryption Decryption in PHP

I have a situation where I have to encrypt and decrypt SOAP xml in PHP. I am trying to encrypt the Envelope of a soap xml. Encryption is working, but decryption is not. For encryption and decryption I use the code specified in this…
user922834
  • 195
  • 2
  • 6
  • 18
-1
votes
3 answers

RijndaelManaged can not decrypt

The code can be found at: http://pastebin.com/3Yg5bHra My problem is, that when I decrypt then nothing gets returned at all. Nothing gets decrypted. It goes wrong somewhere around line 111-114. The cryptoStream (csDecrypt) is empty, eventhough I put…
Casper Thule Hansen
  • 1,510
  • 2
  • 19
  • 36
-1
votes
1 answer

Rijndael and CryptoJs interoperability

We have a C# library that encrypts and decrypts using Rijndael _algorithm = new RijndaelManaged() { Mode = CipherMode.CBC, Padding = PaddingMode.ISO10126 }; public override byte[] Encrypt(byte[] bytes) { // a new iv must be…
Dan Hunex
  • 5,172
  • 2
  • 27
  • 38
-1
votes
1 answer

How to fix AES encrypt function adding \0\0\0 to the end of encrypted text?

When I decrypt an encrypted username using AES encryption it shows a bunch of "\0\0\0" at the end of the decrypted username. Is there a way to not add these when encrypting? The example code of the encryption and decryption: string ky =…
M.Meuris
  • 41
  • 10
-1
votes
1 answer

I was unable to properly decrypt the encrypted data in a file with the Rijndael method in c#?

I have two methods that use Encrypt and Decrypt in them what I do is read the file data the encrypted and modify the file with encrypted data, this operation done correctly but when I go to decrypt the encrypted data is not returning me the value…
-1
votes
1 answer

Decrypt C# Encryption with PHP

Some time ago I implemented a C# web API to serve information. This information is encrypted and is consumed by other either C# or Classic ASP websites. Tis is how I am doing the encryption / decryption using the methods EncryptRijndael and…
AntDC
  • 1,807
  • 14
  • 23
-1
votes
1 answer

Generate 256bits Key Rijndael in PHP

The below code will successfully generate KEY for encryption. How can I recreate this in PHP using the same salt and passkey to generate a KEY in order to decrypt the message? public static string GenerateKey(string passkey) { var myAlg = new…
mhar
  • 47
  • 2
  • 10
-1
votes
3 answers

Encrypt in C# decrypt in JavaScript

I am looking for way to encrypt string in C# and to decrypt it using JavaScript. JavaScript in this case is a scripting language for internal system, so I should not worry about people accessing private key/password which will be required for…
ITRushn
  • 555
  • 1
  • 6
  • 10
-2
votes
2 answers

Translating C# crypto routine into Ruby

I've been trying various methods, but the .Net code seems to be converting the strings and keys to binary before decrypting and the's tripping me up. I've read over and over that AES is essentially Rijndael, so I've been using the open SSL library…
Miriam H.
  • 671
  • 2
  • 8
  • 25
1 2 3
17
18