Questions tagged [symmetric-key]

algorithms are algorithms for cryptography that use the same cryptographic keys for both encryption of plaintext and decryption of ciphertext. The keys may be identical or there may be a simple transformation to go between the two keys.

as stated in Wikipedia.

Since this tag is used in its general meaning, it would be a good idea to use one or more tags too, to describe your specific case better.

83 questions
0
votes
1 answer

How to store a symmetric key in the Android Keystore

I would like to provide the security to symmetric key which I have used for encryption and decryption. I would like to Encrypt the symmetric key and store in shared preferences. How can I do this?
Roster
  • 1,764
  • 6
  • 17
  • 36
0
votes
3 answers

How to stretch user password for encryption in PHP?

I thought I understood this, but my program won't decrypt and says the key is wrong, so I realize I need help. I thought the algorithm went: Encryption: Get user password P Call hash_pbkdf2 to stretch P into a key K_pass_1 Call another…
Miryafa
  • 163
  • 1
  • 2
  • 15
0
votes
1 answer

how do i generate a AES-256 symmetric key using php

i did look around - and everywhere on google - for the direct and clear answer to this question, but got nowhere. so here plain and simple yes or no would be awesome... i have been asked to create an "AES-256 symmetric (also called "session") key"…
0
votes
0 answers

Node JS Symmetric key encryption

I am using AES 256 to save the data in DB after encryption. Is there a way by which I can secure the encryption key from other junior developers?
Taha
  • 135
  • 7
0
votes
1 answer

Should symmetric key or SAS token be used in Azure IoT hub device connection string

I noticed with Azure IoT hub, a device can connect either using connection string which is composed with device Primary or Secondary key in form: HostName=;DeviceId=;SharedAccessKey= or can…
Shuping
  • 5,388
  • 6
  • 43
  • 66
0
votes
1 answer

Java Encryption: Loading a symmetric key from file

So recently I've started working with encryption. I have a functioning asymmetric encryption class, but I need a symmetric key class as well. Although most aspects of the symmetric key class are working, loading a key from it's encoded bytes is not.…
Socratic Phoenix
  • 556
  • 1
  • 7
  • 19
0
votes
2 answers

Which key length is possible in Codeigniter encryption?

I am using CI's own encryption and need confirmation about key length used by AES-256 with CBC. I am using both 32 Bytes and 64 Bytes, and all is working. How about using a 128 Bytes (1024 bits) key?
Surya Tanamas
  • 37
  • 1
  • 13
0
votes
0 answers

AES CBC - Have message input and output and IV and have to find key

I have given the Initialization vector and the input text. Also I have the encoded text. Now my problem is, how can I find the key, because my task is to change the output text. (its a homework and my prof said you can do it in an half hour in…
0
votes
1 answer

What are the different ways of generating a key for encription

I am using aes256 with php to encrypt data. In the various documents I see various ways to generate a key, Like: $key = pack('H*', "bcb04b7e103a0cd8b54763051cef08bc55abe029fdebae5e1d417e2ffb2a00a3"); Or $Key = "what ever, plain string"; Or $Key =…
Itay Moav -Malimovka
  • 52,579
  • 61
  • 190
  • 278
0
votes
2 answers

Chunking AES symmetric encryption

Use case 1 (working baseline): Use case one is straightforward and is implemented / working. In Java, Write a stream to disk in a single fell swoop. Wrap output stream with symmetric cipher so that contents on disk are encrypted. Later, read from…
Robert Christian
  • 18,218
  • 20
  • 74
  • 89
0
votes
1 answer

Encrypt column SQL Server 2008

I have a column in a table which needs to be encrypted for security reasons. How is this possible with SQL Server 2008? I found this article https://msdn.microsoft.com/en-us/library/ms179331.aspx , but when I try to create the master key it gives me…
0
votes
1 answer

how to encrypt AES key using passphrase?

I want to encrypt AES-128 bit key using pass phrase. The maximum number of characters of the pass phrase is 16. Is it possible to encrypt the key? Which algorithm is suitable to encrypt the key?
0
votes
1 answer

3DES key exchange with RSA in Java

I'm implementing a WebService in Java in which the server needs to send a 3DES key to the client using the RSA algorithm. The symmetric is generated by the server. Both the server and the client have their own RSA key-pairs, that were previously…
Vítor Antero
  • 106
  • 1
  • 8
0
votes
1 answer

Alternative to using SecureRandom to generate AES key and IV

I am trying to encrypt text using the AES encryption algorithm , save this encrypted text to a file and then reopen later and decrypt these. Following is my encryption and decryption logic Cipher cipher =…
user_mda
  • 18,148
  • 27
  • 82
  • 145
0
votes
1 answer

Symmetric cryptography key exchange

I am using AES for encryption on a java system and decrypting it back on a javascript platform. What is the best way for a secure key exchange over such system ?
rkj
  • 793
  • 1
  • 6
  • 10