aes

AES interoperability between .Net and iPhone?

I need to encrypt a string on the iPhone and send it to a .Net web service for decryption. I am able to encrypt/decrypt on the iPhone and with .Net, but the encrypted strings from the iPhone cannot be decrypted by .Net. The error I get is "Padding is invalid and cannot be removed." The .Net code is from: http://blog.realcoderscoding.c...

Why can't C# decrypt the output from Perl's Crypt::Rijndael?

A file has been encrypted by Perl. Initial decrypt attempts failed and I am now trying to ascertain whether there is any hoojoo going on (some other settings required) Duff Perl Code: use strict; use Crypt::Rijndael; my $key ='...'; my $rcipher = Crypt::Rijndael->new ($key, Crypt::Rijndael::MODE_CBC()); undef $/; my $encrypted = <>...

AES encryption of 16 bytes without salt

How secure is it to encrypt 16 bytes of data as a single block with AES? No salt/IV, no mode of operation, millions of different 16 byte blocks encrypted. I don't know enough about crypto but this smells to me. Edit: to give a bit more detail this is not about encrypting a message but a database table column where the plain text length ...

AES in ASP.NET with VB.NET

What is a good link or article on encrypting a URL link with AES to pass username to another web site in ASP.NET using VB.NET 2005? FYI: The receiving web site will have access to the private KEY to decrypt. ...

Mimic AES_ENCRYPT and AES_DECRYPT functions in Ruby

Hello there! I need to mimic what MySQL does when encrypting and decrypting strings using built-in functions AES_ENCRYPT() and AES_DECRYPT(). I have read a couple of blog posts and apparently MySQL uses AES 128-bit encryption for those functions. On top of that, since this encryption requires a 16-bit key, MySQL pads the string with x0...

Using AesCryptoServiceProvider in VB.NET

My problem is actually a bit more complicated than just how to use AES in VB.NET, since what I'm really trying to do is use AES in VB.NET from within a Java application across JACOB. But for now, what I need to focus on is the AES implementation itself. Here's my encryption code Public Function EncryptAES(ByVal toEncrypt As String, By...

Rijndael / AES from C# to VB6

Hello, 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 two implementations generate different outputs starting from the same input :( ...

Identity-Based Encryption and Open Source

I recently ran across the notion of Identity Based Encryption (IBE) which seems like a novel idea. However, I haven't noticed many in the cryptography community attempting to find ways to break it. Am I wrong? Likewise, I am of the belief that unless you can actually distribute open source implementations where the blackhat crowd can at...

Javascript AES encryption

Is there a library available for AES 256-bits encryption in Javascript? ...

Is it possible to reverse engineer AES256?

Imagine I have this: $cdata = AES_256($data, $pass); AES_256 algorithm is: http://en.wikipedia.org/wiki/Advanced_Encryption_Standard If I know the content of $cdata and the content of $data and also have the AES256() code, can I reverse engineer and find $pass? ...

Hard coded AES-256 key with WinCrypt & CryptImportKey

I need to have a Win32 application load a hard coded AES-256 key, ideally using the WinCrypt.h methods. I've got my key in an unsigned char[32] but I can't find the correct format of a key blob to pass to CryptImportKey. Everything seems to give me invalid parameter errors. Is there any way to do this? (Also important is how to set IV i...

M2Crypto Encrypt/Decrypt using AES256

Can someone provide me code to encrypt / decrypt using m2crypto aes256 CBC using Python ...

Generate AES key with seed value

Hi, How do I Generate AES key with seed value so that whenever I generate key with same seed value,I shud be able to get the same AES key? I want to generate this key for my Blackberry Pearl 8100 device. Please help. Thanks. Hi again, I am not able to generate AES key with AESKey(keyData) . Also whenever I print it either in the ...

is there any AES encryption python library that will work well with python 3.0?

I want to know is there any python 3.0 supported library for encryption. To encrypt files of 128 bits of data?? ...

Any good example or advice about using AES encryption in J2ME?

I'm connecting mi cell phone application in J2ME to a web service and I have to send a SHA256 hash to it in order to validate some data received. I also need to be capable to store some information encrypted into the cell phone. I was thinking to use AES (rinjdael) symmetric encryption. Anyone knows about any code example using AES enc...

Seed Mechanism does not work fine for BlackBerry

Hi I have created AES key in java using seed mechanism and the same thing using BlackBerry. My input string for Seed is same in both of these case. But I am getting different AES. But the created AES key should be same. Is there any online help for creating AES key using seed mechanism for BlackBerry Thanks Deepak ...

How to write AES/CBC/PKCS5Padding encryption and decryption with Initialization Vector Parameter for BlackBerry

How to write a BlackBerry program for AES/CBC with Initialization Parameter ecncryption and Decryption and this encryption and decryption should work independent on Programming language Ex= If I encrypt some data using BlackBery I must be able to decrypt the same data using Java Program. Thanks Deepak ...

Java Server not able to encrypt/decrypt data with Blackberry's AESkey

Hi, I am developing a BlackBerry application where the server is in Java. Whenever AES encrypted data is sent to server along with PKCS5 Formatting, The server gets bad padding exception while decrypting it. Please help. Badly stuck in this issue thanks. ...

Help needed in AES encryption in blackberry

I am using AES encryption in java My friend uses the same in blackberry. But I am unable to decrypt the data that my friend have sent. Is there any help for this problem Is there any online help for AES encryption in blackberry. Thanks Deepak ...

Using "strong" JRE policy files with BouncyCastle

Cryptography newbie here... I'm trying to do 128-bit encryption using BouncyCastle with the code below. import java.io.BufferedOutputStream; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.InputStream; import java.io.OutputStream; import java.security.KeyStore; import java.security.Security; import java....