Questions tagged [aes]

Advanced Encryption Standard (AES) is a cryptographic block cipher algorithm.

The latest addition to the block cipher algorithms. DES was published in 1977 based on IBM's previous work on the Lucifer cipher with an expected life span of 10 years. As a result of DES's fame, it has been targeted and probed by cryptanalysis for any weaknesses. The price of fame came at a cost, as a result NIST launched a competition announcing a successor to DES which would be known as AES. Several proposals were submitted and the winner was announced on October 2, 2000.

The cipher uses a default 128-bit block size, with varying key sizes of 128, 192 and 256 bits. (AES deviated from the original Rijndael proposal)

The Rijndael cipher was developed by two Belgian cryptographers: Joan Daemen and Vincent Rijmen

7171 questions
23
votes
6 answers

Java AES encryption and decryption

I would like to encrypt and decrypt a password using 128 bit AES encryption with 16 byte key. I am getting javax.crypto.BadPaddingException error while decrypting the value. Am I missing anything while decrypting? public static void main(String…
Praneeth
  • 1,457
  • 5
  • 23
  • 36
22
votes
2 answers

AES CTR 256 Encryption Mode of operation on OpenSSL

Im new to OpenSSL, Can anybody give me a hint in how to initialize AES CTR mode from a C file. I know this is the method´s signature but I am having problems with the parameters, there´s not many documentation neither a clear example how to make a…
Bartzilla
  • 2,768
  • 4
  • 28
  • 37
22
votes
2 answers

How can I check if OpenSSL is support/use the Intel AES-NI?

Tell me please, how can I check if OpenSSL is support/use the Intel AES-NI?
niXman
  • 1,698
  • 3
  • 16
  • 40
21
votes
3 answers

How to add/remove PKCS7 padding from an AES encrypted string?

I'm trying to encrypt/decrypt a string using 128 bit AES encryption (ECB). What I want to know is how I can add/remove the PKCS7 padding to it. It seems that the Mcrypt extension can take care of the encryption/decryption, but the padding has to be…
Ali
  • 261,656
  • 265
  • 575
  • 769
21
votes
5 answers

Can I use AES in CTR mode in .NET?

.NET's AES does not implement CTR directly. It only implements CBC, CFB, CTS, ECB and OFB. Can I use any of these modes and securely implement CTR around them, or do I need to use a different library altogether?
jnm2
  • 7,960
  • 5
  • 61
  • 99
21
votes
3 answers

Does iPhone support hardware-accelerated AES Encryption?

I could find references to "hardware-accelerated AES encryption" on an iPhone/iPad. But the APIs that I could find to do the AES encryption (CCCrypt) don't talk about hardware-acceleration at all. Does anyone have any idea if these APIs are the ones…
Bala
  • 341
  • 1
  • 2
  • 6
21
votes
4 answers

AES encryption on large files

I need to encrypt and decrypt large file (~1GB). I tried using this example: http://www.codeproject.com/Articles/769741/Csharp-AES-bits-Encryption-Library-with-Salt But my problem is since the file is very large, I'm getting outOfMemory…
Sharas
  • 1,985
  • 3
  • 20
  • 43
21
votes
1 answer

How secure is AES-128?

It seems there are legal issues associated with AES-256 (it is disabled in Java, and Oracle tells me in their UnlimitedJCE Policy that I am "advised to consult" my "export/import control counsel or attorney to determine the exact requirements"…
Thilo
  • 257,207
  • 101
  • 511
  • 656
21
votes
6 answers

Cryptography: best practices for keys in memory?

Background: I got some data encrypted with AES (ie symmetric crypto) in a database. A server side application, running on a (assumed) secure and isolated Linux box, uses this data. It reads the encrypted data from the DB, and writes back encrypted…
Johan
20
votes
1 answer

When To Check the "This Application Uses Encryption" Box?

When submitting or updating an app, one question you are faced with is: Have you added or made changes to encryption features since you last uploaded a binary for this product? Image: My question is, if I use the encryption you get from the…
Sam
  • 26,946
  • 12
  • 75
  • 101
20
votes
5 answers

AES Encrypt String in VB.NET

I have a program based in Visual Basic 2010. I want to use a custom keyword and AES encryption to generate registration keys on our company website, that will unlock the software regardless of whether or not the software is connected to the…
CodeMouse92
  • 6,840
  • 14
  • 73
  • 130
20
votes
3 answers

OpenSSL encryption using .NET classes

I'm looking to create a class that uses the .NET libraries that is compatible with OpenSSL. I'm aware there is an OpenSSL.Net wrapper, but I would prefer to avoid referencing 3rd party\unmanaged code. I'm not looking for a discussion of whether…
mutex
  • 7,536
  • 8
  • 45
  • 66
20
votes
2 answers

How do you encrypt large files / byte streams in Go?

I have some large files I would like to AES encrypt before sending over the wire or saving to disk. While it seems possible to encrypt streams, there seems to be warnings against doing this and instead people recommend splitting the files into…
Xeoncross
  • 55,620
  • 80
  • 262
  • 364
20
votes
1 answer

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

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?
Blankman
20
votes
1 answer

Decode a Base64 String using CryptoJS

I am trying to create a simple webpage with the goal to send and encrypted message to the server (which will create a file with that content), then a link is created and the user who receive the link provided will be able to see the encrypted value…
aliasbody
  • 816
  • 3
  • 11
  • 25