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

storing a key in unmaned devices in a secure way

Do you have any solution for storing a key (for encryption and decryption for communication) in unmanned devices , where a hacker can access the devices completely and there is no possibility for protect the device? I mean software solution for…
0
votes
0 answers

How to create RSA SHA 256 SignatureEncryption and SymmetricKeyEncryption with ASP.NET VB.Net

I have to do Payment Integration with bank where my account will be debited and vendor's account will be credited. for that Bank need RequestsignatureEncryptedValue and SymmetricKeyEncryptedValue RSA SHA 256 -> payload -> Clients private key ->…
0
votes
0 answers

SQL Server Symmetric Key dropped accidentally without the key backup, can we decrypt with the certificate / master key?

This is me learning using encrypt/decrypt in SQL Server and doing some testing to know what I can and can't do in some cases. The case I am about to ask is about when I accidentally drop the symmetric key and no backup has been created or already…
simplykid
  • 1
  • 2
0
votes
0 answers

Confirming understanding of security protocol modelled in Scyther

In university, I'm currently learning how to use Scyther to model security protocols. Currently I am trying to understand what is happening in an example protocol given to me which is: # Key Establishment Protocol # usertype SessionKey; protocol…
0
votes
1 answer

Paseto V3 Node.js - Local Secret Key must be 32 bytes long symmetric key Error

My secret key was generated using PHP Paseto V3 with openssl_random_pseudo_bytes(32) and then converted from bin to hex. Now I need to decrypt and verify Paseto token using node.js and paseto library (https://github.com/panva/paseto). I don't…
Jacobino
  • 1
  • 2
0
votes
1 answer

CryptoKit/Can not initialize SymmetricKey using SymmetricKey(data:)?

I'm trying to create a symmetricKey from a custom string. My code worked well when I used SymmetricKey(size:), but I want to create symmetricKey from a custom string, so I used SymmetricKey(data:). I don't know what's wrong with my code. func…
James H
  • 14
  • 3
0
votes
1 answer

How can I encrypt data with an already generated AES 256 GCM 96 key (coming from Hashicorp Vault)?

I have a String representing a symmetric key, obtained by using Hashicorp Vault (this may not be important actually). I need this key to encrypt big files, so I cannot send the file directly to Vault asking it to encrypt the data. I want to do it…
Apokalos
  • 124
  • 1
  • 2
  • 13
0
votes
1 answer

Which KeyStore implementations can be used for storing symmetric keys?

java.security.KeyStore uses KeyStoreSpi implementations to provide keystores of different types. Basic OpenJDK comes with support of JKS, JCEKS and PKCS12 keystore types. The first two implement proprietary Sun/Oracle format and PKCS12 is a public…
Evan
  • 649
  • 1
  • 9
  • 22
0
votes
1 answer

Cannot find the symmetric key 'keyFieldProtection', because it does not exist or you do not have permission.'

I am trying to use a stored procedure that has encrypted data, I have written the same program in Python with success. However when I use c# connecting to same db, it throws this error. Cannot find the symmetric key 'keyFieldProtection', because it…
0
votes
0 answers

How to conditionally check Symmetric Encryption with AES_256 algorithm data with variable data

I'm using AES_256 algorithm SELECT count(1) from [dbo].[EmployeeMaster] where [UserName]=EncryptByKey (Key_GUID('Symmetrickey'),'Username') Here a value with matched case, but result is '0' with this code i'll get result. but i have huge amount of…
0
votes
1 answer

The element Person.UidDetails.TableKey is not supported in Microsoft Azure SQL Database v12. (Microsoft.Data.Tools.Schema.Sql)

Need help with the error while exporting Data-tier application(bacpac file). The element Person.UidDetails.TableKey is not supported in Microsoft Azure SQL Database v12. (Microsoft.Data.Tools.Schema.Sql) Person.UidDetails.TableKey is nothing but a…
0
votes
1 answer

Decrypt ssl network packets with the keys acquired from openssl api

I have a client application that runs on my computer, which uses openssl to communicate with server using SSLv3. I need to see what they talk so I basically want to edit and recompile openssl library in order to acquire relevant encryption keys. The…
Yigit
  • 183
  • 2
  • 9
0
votes
0 answers

How to resolve Invalid key exception in java?

I am trying to encrypt a file and i am using the following: public class AESFileEncryption { public static void main(String[] args) throws Exception { // file to be encrypted FileInputStream inFile = new…
0
votes
1 answer

DES Encryption keys

I was reading about DES Triple Encryption,and I found a lot of diffrent combinations of the 3 keys , for example there's : using k1 - k2 - k3 , as there's k1- k2 - k1 , ... My Question is , what is the diffrence between these combinations? and…
0
votes
1 answer

Decrypt SecureString with custom key

Actually i'm decrypting strings that i've created with powershell in c#. I create the SecureString with following Powershell command: ConvertTo-SecureString -String "TopSecret" -AsPlainText -Force | ConvertFrom-SecureString I decrypt the…