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
2
votes
1 answer

AES decryption only producing part of the answer C#

I'm trying to learn cyber security and this is the very first thing I've done on it. I'm using this MSDN document ( https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.rfc2898derivebytes?redirectedfrom=MSDN&view=netcore-3.1 )…
Andrew Foot
  • 119
  • 10
2
votes
0 answers

AES encryption in Flutter not working properly

We are porting an app from native Android/iOS to Flutter. We are using AES symmetric encryption in native apps and they are working fine with our device. Following is the flutter code where we have tried to replicate java implementation. Here we…
vijay053
  • 822
  • 3
  • 18
  • 36
2
votes
4 answers

Decrypt file using AES method in Android

I have encrypted files using AES encryption in php with following code. $ALGORITHM = 'AES-128-CBC'; $IV = '12dasdq3g5b2434b'; $password = '123'; openssl_encrypt($contenuto, $ALGORITHM, $password, 0, $IV); Now I am trying to decrypt it in Android…
Faisal Shaikh
  • 3,900
  • 5
  • 40
  • 77
2
votes
2 answers

error decrjavax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption

I am facing the following issue while working with Java cryptography. error decrjavax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption. I have checked all possible…
learner
  • 332
  • 2
  • 6
  • 22
2
votes
0 answers

CryptoJS AES encryption key size in JavaScript?

Good day, guys. I am having a trouble while developing AES encryption using CryptoJS in javascript. Let's see my source code first.
2
votes
1 answer

CryptoJS AES decrypting a message encrypted in PHP openssl_encrypt

I have the following PHP code that uses openssl_encrypt() function to encrypt a message. Here is the code: $ciphering = "AES-128-CTR"; $options = 0; $encryption_iv = '5192001995060634'; $encryption_key = "TasKagitMakas"; function encrypt…
Burak.
  • 598
  • 7
  • 19
2
votes
0 answers

Migrating AES encryption libraries

The goal We’ve been using EasyByte’s Cryptocx library to encrypt documents using AES256. The library is 32-bit and is preventing us from building a 64-bit version of our application. EasyByte went out of business and there’s no 64-bit version,…
fergroops
  • 111
  • 2
  • 7
2
votes
1 answer

Android + exoplayer: play AES encrypted videos, locally

On a linux box, I have an MP4 video that is encrypted with openssl: openssl enc -aes-128-ecb -a -in video.mp4 -out video.enc -K `cat aes.key` Please note, this is an exercise, the strength of the algo doesn't matter. That file is sent to an Android…
mbmc
  • 5,024
  • 5
  • 25
  • 53
2
votes
3 answers

TypeError: Cannot read property '0' of undefined CryptoJS

I am using CryptoJS in my angular app to implement AES encryption but I am keep getting TypeError: Cannot read property '0' of undefined error when I try to send empty 16 byte array in IV Here's my typescript code: aesEncrypt(keys: string, value:…
Shreyas Pednekar
  • 1,285
  • 5
  • 31
  • 53
2
votes
2 answers

java.security.InvalidAlgorithmParameterException: GCM can not be used with class javax.crypto.spec.GCMParameterSpec

I'm Encrypting the data with "AES/GCM/NoPadding" algorithm, before cipher init method I'm getting java.security.InvalidAlgorithmParameterException: GCM can not be used with class javax.crypto.spec.GCMParameterSpec error, is there any specific reason…
2
votes
1 answer

Can I use 3DES in my application in 2020?

We're writing a new application that is working with relatively sensitive information. The team is debating whether we should support 3DES and/or AES encryption for the data. Unfortunately a Google search is giving mixed results. We have libraries…
user5994461
  • 5,301
  • 1
  • 36
  • 57
2
votes
4 answers

Problem with equivalence of a few things while porting encryption code from java to c#

I am trying to port the below Java code to C#, but I am having some difficulty figuring out what would be the equivalent for: SecretKey skey SecretKeySpec skey_spec IvParameterSpec iv_spec KeyPair rsaKey KeyGenerator kgen Would appreciate if some…
Guapo
  • 3,446
  • 9
  • 36
  • 63
2
votes
0 answers

Encrypting AES 256 CBC using python and decrypting using PHP

This here is successfully send to the endpoint with encrypted data using aes-256-cbc. The http_status: 200 scenarioId = 123 useCaseId = 1 keyword = "test" dataDump = "Test" iv =…
asdjklqwe
  • 31
  • 2
2
votes
0 answers

TransformFinalBlock vs CryptoStream

I am confused about this topic when it comes to AES encryption. The MSDN page shows quite a lot of code used to encrypt/decrypt and uses multiple streams: // Create the streams used for encryption. using (MemoryStream msEncrypt = new…
dksue
  • 61
  • 3
2
votes
2 answers

Python to Kotlin AES communication (javax.crypto.BadPaddingException)

I am trying to encrypt a UTF-8 string on Python with AES and decrypt it in Kotlin, here is the Python encrypt part: class aes(): def __init__(self, key): self.bs = AES.block_size self.key =…
Facundo
  • 31
  • 5
1 2 3
99
100