aes

.NET's SslStream is always negotiating to the least secure cipher I have. How can I change this?

SslStream is supposed to negotiate the cipher type, key length, hash algorithm, etc. with its peer SSL stack. When using it in my code, I find that the negotiation always defaults to RC4 & MD5. I would like to use 3DES or AES for some added security. Looking around the web I find only a few references to this problem and no solutions; o...

Strong SSL with Tomcat 6

I'm trying to create a self signed certificate for use with Apache Tomcat 6. Every certificate I can make always results in the browser connecting with AES-128. The customer would like me to demonstrate that I can create a connection at AES-256. I've tried java's keytool and openssl. I've tried with a variety of parameters, but can't...

Does AES (128 or 256) encryption expand the data? If so, by how much?

I would like to add AES encryption to a software product, but am concerned by increasing the size of the data. I am guessing that the data does increase in size, and then I'll have to add a compression algorithm to compensate. ...

Does IE6 Support AES 256 bit encryption?

Will IE6 negotiate a 256 bit AES SSL connection if the server is capable? ...

IPSec AES 256 encryption in Windows XP with Service Pack 3?

Does IPsec in Windows XP Sp3 support AES-256 encryption? Update: Windows IPsec FAQ says that it's not supported in Windows XP, but maybe they changed it in Service Pack 3? http://www.microsoft.com/technet/network/ipsec/ipsecfaq.mspx Question: Is Advanced Encryption Standard (AES) encryption supported? origamigumby, please specify ...

Which AES library to use in Ruby/Python?

I need to be able to send encrypted data between a Ruby client and a Python server (and vice versa) and have been having trouble with the ruby-aes gem/library. The library is very easy to use but we've been having trouble passing data between it and the pyCrypto AES library for Python. These libraries seem to be fine when they're the onl...

AES encryption, sample code

Hi, How do I go about performing AES encryption on a GUID? On the clients computer we will store a GUID and their public key, and our internal servers will have the private key and their guid. Is this all the necessary inputs to generate the AES encryption? ...

How to encrypt in VBScript using AES?

I am looking to encrypt some data using Rijndael/AES in VBScript using a specific key and IV value. Are there any good function libraries or COM components that would be good to use? I looked at CAPICOM; it allows a passphrase only, and won't allow setting specific key and IV values. ...

AES encryption, what are public and private keys?

Hi, In AES encryption (.net framework), how are the public and private keys used? Are the public and private keys combined to form a full key, and then the algorithm uses the public + private key to encrypt the data? (simplified keys used below for example purposes) e.g. public key = 12345 private key = 67890 so the key used when ge...

c# implementations of AES encryption

Hi, I can't seem to find a nice clean example of using AES 128 bit encryption. Does anyone have some sample code? ...

RijndaelManaged supports 128-256 bit key, what key size the default constructor generator?

Hi, For new RijndaelManaged(), the documentation says it supports keys of 128 bits and up to 256 bits. When you instantiate new RijndaelManaged(), it creates the Key and IV for you. What size does it default to, 128 bits? ...

How to store the AES Rijndael generated Key to the database?

Hi, When creating the instance, the KEY and IV are generated for me. RijndaelManaged myRijndael = new RijndaelManaged(); How can I store the Key in my database or web.config file? And in what format? Because I will have to load the key when trying to decrypt the encrypted string obviously. thanks for your help, a little lost on th...

What do Streams do when implementing AES encrption in .NET?

Hi, The Rijndael encryption algorithm is implemented in .NET using 3 streams in the following example: Rinjdael. Can someone explain to me what these streams are doing? How/Why are they used? // Declare the streams used // to encrypt to an in memory // array of bytes. MemoryStream msEncrypt = null; CryptoStream csEncrypt = null; Stre...

Converting the Rijndaelmanged() byte[] to a string

Hi, I want to convert the Rijndaemanaged() encrpted value to a string. Will ToBase64String() suffice? It says its only for 8-bit arrays, but AES is 128 bit right? Update For the encrption, I am using the code from http://msdn.microsoft.com/en-us/library/system.security.cryptography.rijndaelmanaged.aspx ...

What is the algorithm identifier when using AES in CBC mode with ISO 10126 padding inside of PKCS#7?

I want to use PKCS#7 as a container format for some encrypted, signed content and we need to use AES in CBC mode with ISO 10126 based padding. I can't seem to find a concrete reference to an algorithm identifier to use for this combination. I can invent my own but would then lose interoperability with other tools. ...

Encryption algorithm/library for .NET 2.0 + C++

I need a standard, Microsoft delivered, encryption library that works for both .NET 2.0 and C++. What would you suggest? We find that AES is only offered in .NET 3.5 (and available in C++) We find that Rijndael is used in .NET 2.0 but not available in the standard C++ libraries. If I am wrong (very good chance), can you point me in th...

Java Cipher - AES Padding Problem

Hi all I am using a AES cipher with a 16 byte block size. If I try and encrypt a 16 byte string I have no problems, but any other length not a multiple of 16 is throwing an exception. I know with 3-DES you can specify a padding type as part of the algorithm and it's handled with no extra work (e.g. DES/CBC/PKCS5Padding), but is the...

Best way to implement an SFTP server solution?

Hi folks, I'm currently setting up a commercial SFTP server and I'm just looking for some of your opinions on the set-up I'm currently thinking of implementing, as well as a recommendation as to what commercial Secure FTP server software would be best to suit. Bear in mind that the data i'm responsible for is highly sensitive so any com...

Misunderstanding MixColumns step

I'm having an issue understanding the MixColumns step described here. I know about diffusion and it all makes sense up the the point where it states that each column is treated as a polynomial and multiplied modulo over GF(2^8). BUT..multiplying in GF(2^8). Although the domain is still the same, it is not reversible due to mod.... and ...

Decrypting RijndaelManaged Encrypted strings with CryptDecrypt

Ok I'm trying to use the Win32 Crypto API in C++ to decrypt a string encrypted in C# (.NET 2) with the RijndaelManaged Class. But I'm having no luck at all i get jibberish or a bad data Win32 error code. All my keys, IV and salt match, I've looked in the watch for both test apps. I've spent all say looking at it and I'm officialy stuc...