initialization-vector Questions

9

Solved

per my question Aes Encryption... missing an important piece, I have now learned that my assumption for creating a reversible encryption on a string was a bit off. I now have public static byte[...
Hsining asked 7/11, 2011 at 19:24

16

Solved

I'm trying to build two functions using PyCrypto that accept two parameters: the message and the key, and then encrypt/decrypt the message. I found several links on the web to help me out, but each...

6

Solved

I'm trying to implement AES in Java and this is the code I use: byte[] sessionKey = {00000000000000000000000000000000}; byte[] iv = {00000000000000000000000000000000}; byte[] plaintext = "6a848...
Catfall asked 18/7, 2011 at 7:30

5

Solved

I am about to use the following script to encrypt and decrypt some data. I am using it because my current encryption does not work on our new server. We are currently using mcrypt so I want to chan...
Sternick asked 9/9, 2016 at 13:31

4

Solved

Today I was doing some leisurely reading and stumbled upon Section 5.8 (on page 45) of Recommendation for Pair-Wise Key Establishment Schemes Using Discrete Logarithm Cryptography (Revised) (NIST S...
Decompound asked 26/4, 2011 at 21:57

1

I made the following observation with an AES encrypt/decrypt example which is very counter intuitive for me. I tried to encrypt and the decrypt a simple payload with AES in CBC mode. My understand...
Gratianna asked 26/11, 2019 at 22:15

1

Solved

I've 16 bytes data I'm storing in Uint8Array. I need to store this data in the browser and must get it in some other class. so my code looks like this: const ivBytes = window.crypto.getRandomValu...

1

Solved

I wanted to try my hand at encrypting a file and utilized the following stack overflow response. However, while testing out the initialization vector, I found it only effected the first 16 bytes. ...
Lachus asked 11/11, 2017 at 22:0

2

Solved

I have tried to find the answer by myself looking here and searching elsewhere for quite a while, but I still have some questions. Assume this Java code: try { int cipherMode = Cipher.ENCRYPT_M...
Mureil asked 20/7, 2017 at 9:57

1

Solved

I would like to store AES encrypted data in a DB field. Is it safe to store the AES IV (unique for each row) prepended to the cipher text? e.g. IV_CipherText Both would be encoded in Base64. ...
Disjoin asked 16/6, 2017 at 10:2

1

Solved

I have a site A and site B where site A needs to send sensitive encrypted data to site B for site B to decrypt. I know that its best to encrypt using a randomized cryptographic initialization vecto...
Covington asked 27/6, 2016 at 17:22

3

I have been using AES-CBC for encryption and I use a random IV each time I encrypt plain text. As far as I can tell, this is the recommended approach. I have been looking into AES-GCM / AES-CTR, p...

1

Solved

When encryption sensitive information using the .NET AesCryptoServiceProvider library I generate a unique Initialization Vector (IV) for each value that is encrypted. In the database record where I...
Obscuration asked 24/3, 2016 at 21:16

2

Solved

I'm relatively new to developing something with encryption. Right now I'm trying to write a class which encrypts and decrypts Strings using BouncyCastle with AES-GCM. I read about the things you ha...
Wristwatch asked 22/2, 2016 at 16:2

1

I'm implementing and AES encryption engine for PBE in android, and I've found two ways to implement the creation of the IV and I would like to know which one is better and more secure for getting I...
Spears asked 25/3, 2015 at 22:5

2

Solved

I need to generate some random data to append to my file for encryption. How would I go about doing this? Would it be sort of the same idea as generating a string of random characters? Something ...
Marvin asked 24/9, 2011 at 17:29

2

Solved

I'm trying to understand how PyCrypto works to use in a project but I'm not fully understanding the significance of the Initialization Vector (IV). I've found that I can use the wrong IV when decod...
Lineate asked 5/2, 2013 at 20:30

2

Why would this init succeed: Cipher AESCipher = Cipher.getInstance("AES/CBC/PKCS5Padding"); AESCipher.init(Cipher.ENCRYPT_MODE, secretKey, secRandom); while this fails: Cipher AESCipher = Ciphe...
Bendite asked 2/1, 2013 at 15:14

0

I used AES with AES/CBC/PKCS5Padding with the following encryption and decryption code sections in Android: cipher.init(Cipher.ENCRYPT_MODE, keySpec, new IvParameterSpec(IV1)); cipher.init(Cipher....
Forefront asked 11/5, 2012 at 19:55

2

Solved

I understand that unique IV is important in encrypting to prevent attacks like frequency analysis. The question: For AES CBC encryption, whats the importance of the IV? has a pretty clear answer ex...
Sanctuary asked 10/1, 2012 at 14:8

3

Solved

from what I know, CTR mode doesn't use an Initial Vector. It just takes a counter, encrypts it with a given key and then XOR's the result with the plaintext in order to get the ciphertext. Other b...
Sidewalk asked 9/2, 2011 at 22:45

1

Solved

I'm by no means a cryptography expert, I have been reading a few questions around Stack Overflow and on Wikipedia but nothing is really 'clear cut' in terms of defining an IV and its usage. Points...
Jurel asked 7/5, 2010 at 21:15
1

© 2022 - 2024 — McMap. All rights reserved.