Questions tagged [encryption-symmetric]

A type of encryption where the same key is used to encrypt and decrypt the message.

Symmetric encryption is the oldest and best-known technique. A secret key, which can be a number, a word, or just a string of random letters, is applied to the text of a message to change the content in a particular way. This might be as simple as shifting each letter by a number of places in the alphabet (known as the Caesar Cipher), or as complicated as the Advanced Encryption Standard, which is used in some modern cryptography. Anyone who knows the key can either encrypt or decrypt a message.

Note that symmetric encryption does not require that the encryption and decryption key be identical, but rather that both keys derive from the same knowledge. For example, a letter-shifting cipher might require that "A" be enciphered as "G" - the opposite operation would be needed to decrypt.

736 questions
4
votes
1 answer

Is AES(Rijndael) faster than Blowfish in java 8 platform?

I know theoretically that BLOWFISH is much faster than AES. But I benchmarked several algorithms including AES and BLOWFISH for 1MB, 5MB, 10MB etc. files in Java 8 platform and bouncy castle library. In every test scenarios AES is faster than…
ersan
  • 51
  • 3
4
votes
1 answer

Downloading encrypted file from Window Azure storage

I have created a MVC WebRole Window Azure application where i upload encrypted files to Azure blob storage using SymmetricAlgorithm (Rijndael) like this Controler>Action is [HttpPost] public ActionResult UploadImage_post(HttpPostedFileBase…
4
votes
1 answer

Crypto++ symmetric algorithms and authenticated block modes combinations

I've implemented a C++ wrapper library for Crypto++ v5.6.2 and have a question about combinations of symmetric algorithms (e. g. Blowfish) and block modes (e. g. GCM). I am able to encrypt and decrypt data via Blowfish/EAX, but I can't achieve the…
Florian Wolters
  • 3,820
  • 5
  • 35
  • 55
4
votes
1 answer

How can I create a shared-secret voucher code system between 2 independent servers?

Given this workflow: Server A User authenticates. User purchases randomly generated unique voucher code using shared secret to use an application on on server B. Server B User authenticates. User inputs voucher code. Server B validates code is…
Andrew
  • 1,030
  • 13
  • 24
4
votes
2 answers

OpenSSL: AES CCM 256 bit encryption of large file by blocks: is it possible?

I am working on a task to encrypt large files with AES CCM mode (256-bit key length). Other parameters for encryption are: tag size: 8 bytes iv size: 12 bytes Since we already use OpenSSL 1.0.1c I wanted to use it for this task as well. The size…
matejk
  • 798
  • 1
  • 14
  • 27
4
votes
2 answers

AES cryptography in vb6 and c#

I need a .NET (C# ideally) algorithm that will produce the same results as a vb6 one I made to encrypt and decrypt binary files. I've been trying to hunt down code for a week now and have had little success. I started with How to encrypt a string…
Ron H
  • 248
  • 4
  • 15
4
votes
2 answers

Use private key in java using DES without generating key automatically

I have to encrypt/decrypt plain text in java using DES with a key. I have got a very good tutorial at IBM which can be found here . The problem with this example is that it is generating the key in the program itself. Now if I encrypt a string(eg…
antnewbee
  • 1,779
  • 4
  • 25
  • 38
4
votes
2 answers

Symmetric encryption algorithm function

To start off, I am still learning object oriented programming. Ok, I have a combo box with the different types of symmetric algorithms. private void Form3_Load(object sender, EventArgs e) { openencrypt(); comboBox1.Items.Add("AES"); …
4
votes
4 answers

How can I encrypt a string in Java to be the exact same as it is encrypted in ColdFusion?

I have data encrypted in ColdFusion that I need to be able to decrypt and encrypt to the same exact value using Java. I was hoping someone may be able to help me with this. I will specify everything used in ColdFusion except for the actual…
kei23th
  • 283
  • 2
  • 6
  • 14
3
votes
2 answers

Encrypting/decrypting large files with PyCrypto - strategies

Im currently trying to learn some stuff about encryption, it's algorithms and how it works in general. I was thinking about a way to go for encrypting large files and the only way feasible to me seems using a symmetric key algorithm. So i was…
omu_negru
  • 4,642
  • 4
  • 27
  • 38
3
votes
1 answer

Microsoft CNG BCryptEncrypt returning ciphertext == plaintext

I am trying to implement an AES-OFB wrapper around CNG's AES for symmetric encryption. I have run into an issue that I cannot understand... I have created an AES algorithm handle (BCRYPT_AES_ALGORITHM) and imported an AES key. I then attempt to…
Daniel Scire
  • 221
  • 1
  • 9
3
votes
1 answer

Android AES password-based encryption using one key and random IV for every message

I'm currently implementing a symmetric en-/decryption using AES 256 on Android, inspired by this post: Java 256bit AES Encryption. The purpose of my implementation is that I want to encrypt the data in a database. For key generation I use the…
3
votes
1 answer

Inconsitent behaviour with RijndaelManaged encryption

I am experiencing a strange problem with RijndaelManaged. Basically I have a new instance of it where I set up the CipherMode, Padding, IV and Key. Then I create another instance and assign the same values of the following properties from the…
Lord of Scripts
  • 3,579
  • 5
  • 41
  • 62
3
votes
2 answers

Decrypt Data From SQL Server 2008 R2

I need some help translating this procedure (see below) to Entity Framework 4.0. Does anyone have any suggestions of how to port this over. The target project includes; Silverlight 4, WCF RIA Services, EF 4.0, SQL Server 2008 R2. The only…
3
votes
1 answer

AES 256 Encryption with PyCrypto using CBC mode - any weaknesses?

I have the following python script to encrypt/decrypt data using AES 256, could you please tell me if there's anything in the code that may make the encryption weak or if there's anything that I've not taken account of for AES 256 encryption using…
Imran Azad
  • 1,384
  • 1
  • 21
  • 36