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
0 answers

R Change ggplot geom_quasirandom colors

R newbie on deck, Hi everybody ! I wrote a code to visualize a geom_quasirandom (library GGbeeswarm ) for my dataset. What works is to visualize it, but with 3 random colors for the 3 species in the dataset. However, i do want to customize the…
2
votes
0 answers

Arduino AES ESP8266

i am using a library to code a message to AES CBC library : https://github.com/suculent/thinx-aes-lib version 2.2.0 from nodeJS i have : CLEAR DATA: TEST IV: 3b698860538401cdd146504278aeecc9 KEY: df4f66809bafe58fe16aba7f4cb3e8bc ENCRYPTED DATA :…
S2G
  • 121
  • 7
2
votes
1 answer

AES - Generating a key and Loading it gives an Invalid Key Exception

I've been trying to get AES encryption and decryption working for some time in Java. Unfortunately I haven't had much luck. Right now I can generate a key in one method the code for which is shown keyGen =…
rhololkeolke
  • 746
  • 2
  • 7
  • 25
2
votes
2 answers

Java AES 256 Secure Key Generator -- Illegal key size

I am trying to generate a key for encryption: public static final String ENCYT_ALGORITHM = "AES/ECB/PKCS7Padding"; public static final String KEY_ALGORITHM = "PBEWITHSHA256AND256BITAES-CBC-BC" ; //BENCYT_ALGORITHMSE64Encoder encod = new…
Shuyi
  • 906
  • 2
  • 13
  • 28
2
votes
2 answers

Can we perform wildcard search on encrypted columns in MySQL and Java

I'm working on a web application where customers' sensitive data like name, dob, etc need to encrypt and store in the database. For this, I'm using crypto encryption in java to encrypt the given text and storing the encrypted value in the…
Sree
  • 2,792
  • 8
  • 25
  • 33
2
votes
2 answers

How to store AES Private key in flutter project?

I do not want show any person who open AESEncryption class. Where do i store this key in project especially android platform. class AESEncryption { static final _key = Key.fromUtf8('My private key'); static final _iv = IV.fromLength(16); …
Mevlüt Gür
  • 155
  • 1
  • 10
2
votes
1 answer

php to C# A JSON array of data encrypted using the Rijindael-256 algorithm and encoded using a base64 algorithm

I am trying to convert the following php code to C#: $m_params = urlencode(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256,$key, json_encode($arParams), MCRYPT_MODE_ECB))); What the documentation says: m_params : A JSON array of data…
Umer Khalid
  • 99
  • 10
2
votes
0 answers

How do I Decrypt AES key (“session_key” from request Json) using Client RSA Private key in php

I have this encrypted authentication request. { "data": "3UsYDGma9CiIbhNa3aZZYoC0tPU9Uui1tpkvu33IOKya8UNXpo4mOL2BGTYogYoax7RP2kQzQM+xoUoC", "hash_digest":…
2
votes
1 answer

nodejs crypto createDecipheriv throws 'ERR_OSSL_EVP_WRONG_FINAL_BLOCK_LENGTH'

I'm experimenting with encryption and decryption of mp3 files. I have a python code doing an AES encryption and trying to decrypt the encrypted output with crypto library of node.js. My python code is: from Crypto.Cipher import AES import hashlib #…
Misgevolution
  • 825
  • 10
  • 22
2
votes
1 answer

Trouble Implementing AES Key Expansion

I am trying to implement the AES Key Expansion in Python, but I am having some trouble. Here is the code I'm using: Rcon= [ 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e,…
AnthonyLau
  • 53
  • 4
2
votes
2 answers

How can i set key and vector when doing encryption?

I am using the following code. The key and vector are copied from the web. No secrets there. private static byte[] key = { 123, 217, 19, 11, 24, 26, 85, 45, 114, 184, 27, 162, 37, 112, 222, 209, 241, 24, 175, 144, 173, 53, 196, 29, 24, 26, 17,…
Jenny K
  • 27
  • 2
2
votes
0 answers

Javascript equivalent to Java SHA1PRNG

I have a Java Application that uses "AES-128 bits/ECB/PKCS5Padding" (java8 linux/window), the code is quite simple KeyGenerator keygen = KeyGenerator.getInstance("AES"); SecureRandom secureRandom =…
Qiulang
  • 10,295
  • 11
  • 80
  • 129
2
votes
1 answer

AES Decryption when writing to a file using base64 encoding

I'm implementing the following steps: Bob encrypts a message with AES Bob encodes the encryption to a base64 string Bob writes the string to a file Alice reads the file Alice converts the string to byte Alice decrypts the message However, I'm…
qz_99
  • 185
  • 1
  • 12
2
votes
2 answers

How to protect the encryption key from reverse engineering?

My software is using AES Rijndael. I am using a SHA-256 hash to generate a key from a string with an arbitrary length, and then passing this as both the private and public key since in this instance I do not need to differentiate between the…
Philip Bennefall
  • 1,477
  • 5
  • 20
  • 33
2
votes
1 answer

Encrypt file in java and decrypt in openssl with key aes

I referred this link to do encrypt a file in java(encrypted file is created successfully) And later i want to decrypt it using openssl. I tried below commands but none of them seems to work. Please suggest correct command to decrypt in…
Anees U
  • 1,077
  • 1
  • 12
  • 20