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

Generating a symmetric key in php

Im trying to generate a symmetric key, which i can use to both encrypt and decrypt a message with the same key, in php. I've made my way through the php documentation below but can only find public/private key…
0
votes
1 answer

Encryption (Symmetric key) lib

I have been reading a little bit about Encryption. I'm currently in a project where I'll need to Encrypt/Decrypt data based on a key (user password), but the problem is: - I'll need to encrypt/decrypt in several client applications built with…
0
votes
2 answers

RijndaelManaged Key generation

I need to encrypt data and store it in a file and later be able to decrypt it back. For this I am using RijndaelManaged class. Now I do not want to keep the key hardcoded in the code. After some googling I found this method - Here the key is…
Happy Go Lucky
  • 607
  • 1
  • 9
  • 17
0
votes
2 answers

Generate HMAC_SHA256 Signature in JavaCard Applet

I am trying to sign a message which contains in inBuffer byte array using my own derived key S (also byte array). The snippet of the function from javacard (jc) applet module is given below. I am using javacard2.2.2 library for developing jc applet.…
Ankit Singh
  • 2,602
  • 6
  • 32
  • 44
0
votes
1 answer

how to wrap/store the key of TripleDESCryptoServiceProvider

I'm using DES encryption, and I want to store the key of TripleDESCryptoServiceProvider. But the key consists of (Key + IV), I was trying to save them in an XML file using XmlTextWriter Convert.ToBase64String(...) but there was an exception due…
ala
  • 7,070
  • 13
  • 47
  • 54
-1
votes
3 answers

InCorrect output using Rfc2898DeriveBytes for password hashing

I am certainly sure i am doing something wrong here. Using .net implementation of the algorithm i hash the password to store in database along with the salt used to hash. On validating the same password with the existing hash does not match.Here is…
Deeptechtons
  • 10,945
  • 27
  • 96
  • 178
-1
votes
1 answer

How to import Symmetric key to thales HSM?

As title, how to import Symmetric key(Triple DES key) to thales HSM? Just like aws HSM, it can use imSymKey command. https://docs.aws.amazon.com/cloudhsm/latest/userguide/key_mgmt_util-imSymKey.html Please provide me code and example, thanks a lot.
beehuang
  • 339
  • 2
  • 18
-1
votes
1 answer

SymmetricAlgorithm GenerateKey with 128 bit

I have the following code to create a new SymmetricAlgorithm: internal static SymmetricAlgorithm CreateSymmetricAlgorithm() { var algorithm = new RijndaelManaged { KeySize = 128, Padding = PaddingMode.ISO10126, Mode =…
Tomtom
  • 9,087
  • 7
  • 52
  • 95
1 2 3 4 5
6