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
-2
votes
1 answer

tokenization engine | encryption-decryption using seed file

I need to build web server (window server) with a tokenization engine for encrypting sensitive data. As per client requirements: The server should be configured with a unique encryption/hash "seed" file that can be backed up The server should use…
user2745580
  • 123
  • 7
-2
votes
1 answer

how to fix the error in Mono-alphabetic Cipher decryption?

i have written a program on mono-alphabetic ciphers , my code is running perfect for encryption but it give me wrong values when i am doing decryption. here is my code using System; class SubstitutionCipher { static void Main() { string key =…
Sangeen Khan
  • 175
  • 1
  • 20
-2
votes
2 answers

How to protect a server's secret key on a browser?

In this use case, the server send an encypted blob to the browser and the the javascript on the browser subsequently requests the decryption key from the server and decrypts the blob to usable content. Is there a way to protect this key on the…
user193116
  • 3,498
  • 6
  • 39
  • 58
-2
votes
2 answers

File encryption using symmetric key

I'm trying to cipher files using symmetric key. Since I'm not able to o this, I'm doing some tests using the file (.txt) content and ciphering that same content using symmetric key and everything works fine: filename1 = raw_input("Insert file name:…
Psycho_Mind
  • 27
  • 2
  • 6
-2
votes
3 answers

Encrypting / Decrypting a passed value in SQL Server

I have the following scenario ... A vendor sends a customer an email. At the bottom of the email is a link back to a web page that I am responsible for i.e. hosting. We need to pass the users email address through the link to the web page but we…
-2
votes
1 answer

Secure file wiping by multiple encryptions and file delete

I am wanting to securely wipe a file - of any type or format - obviously the File.Delete command in C# is no where near safe enough. I seem to recall a post here (I can't find it again though!) that explained the modern File Systems (i.e newer than…
Jonny Wilson
  • 177
  • 4
  • 14
-2
votes
1 answer

AES. Encrypt array of bytes in powershell

I am need to encrypt array of bytes([byte[]]) in powershell script using AES cryptography method. I am find function that encode string: [Reflection.Assembly]::LoadWithPartialName("System.Security") function Encrypt-String($String, $Passphrase,…
-2
votes
1 answer

How to create a simple encryption algorithm in java?

Guys can anyone guide me on how to create an algorithm for encryption/decryption in Java? I need to make a client - server chat on which text needs to be encrypted by generating a key. On the receiver side the receiver receives text message with…
-3
votes
1 answer

AES-RIJNDAEL-256 in PHP slight difference

I was to able to have a function in php which encrypts via CBC method in AES-RIJNDAEL-256 encryption , but when I tested the code I got a slight difference only in one letter which I can not understand where exactly came from , here is the php code…
-3
votes
1 answer

How to remove mcrypt functions in php

The mcrypt module is deprecated in PHP 7.1, so I have to refactor my old encrypt / decrypt functions with the openssl functions. Actually I found no way doing this. My major problem is: The script still must be able to decrypt existing crypted data.…
Marco
  • 3,470
  • 4
  • 23
  • 35
-3
votes
1 answer

C# to Java DES encryption

Trying to create java class which will encrypt and decrypt as like C# code in below. Below is my code for C#, I need to convert it to Java. Can someone help me how to do it? I've been doing this for almost 2 days yet can't find any solutions on how…
Simbu
  • 766
  • 1
  • 12
  • 37
-3
votes
2 answers

PHP equivalent of .net AES encryption

I am working on a data exchange integration with my client and the data they send me is encrypted using their C# encrypt method (below). My app is running PHP 5.3 and I need an equivalent code to decrypt the data they send. I have the PHP code but…
-3
votes
1 answer

C# FromBase64String fail due to unknown UNICODE

I have an encrypted database in which the strings are values like the below: ùœ¢Qa³•ù¼?-pJ´’ˆò»Æ8-skYIÞµ§¬†Œ‚„Šç ù¢=~Òñ€Ï?-pJ´’ˆò»Æ8-skYIÞµ§¬†Œ‚„Šç XwÚûùÖP^opJ´’ˆò»Æ8-skYIÞµ§¬†Œ‚„Šç ö‘±_|Çúùß^_f9´’ˆò»Æ8-skYIÞµ§¬†Œ‚„Šç I'm trying different…
-3
votes
1 answer

encrypt/decrypt sensitive(mostly passwords) data in our java spring based application

We are developing an application using java spring framework to manage multiple devices automatically. In the initial configuration of our application user selects the devices that needed to be managed and enters their credentials. At this time, we…
-4
votes
1 answer

Need matching PHP encryption function

I built a multi-tiered app 3 years ago that encrypts on the .NET side and decrypts on the PHP side. I never did create a corresponding PHP Encrypt function because I didn't think I would ever need it. Now I do, and I can't remember where I got the…
HerrimanCoder
  • 6,835
  • 24
  • 78
  • 158
1 2 3
48
49