Questions tagged [encryption]

13108 questions
1

votes
0

answer
128

Views

Encrypt db file to crypt12 format

I have decrypted crypt12 file into .db file. Modified some changes. Now again, Is there a way to encrypt .db file into crypt12 format?
user9945312
1

votes
0

answer
117

Views

AES CBC with mysql and Python

I'm writing a little program that stores passwords in Python. I access to the DB with Mysqldb module. I want to encrypt the password with AES 256 with CBC. I'm trying to do this with SQL AES_ENCRYPT function. I set the cbc mode with: mysql> SET block_encryption_mode = 'aes-256-cbc'; So in python, I...
linofex
1

votes
0

answer
35

Views

Combine two methods and decrypt android assets with write

How can i combine this two methods and make one smaller method and write decrypt file direct? openssl decrypt cbc: char *aes_decrypt_cbc(char *in, int inLen, int *outLen) { unsigned char Key[AES_BLOCK_SIZE + 1]; unsigned char ivec[AES_BLOCK_SIZE]; AES_KEY AesKey; memset(Key, 0x00, sizeof(Key)); memc...
Freedom
1

votes
0

answer
117

Views

Electron: Storing a value securely

I have developed an application with Node.js. Since I'm planning on selling this application, I have implemented an account system with the help of firebase. However, the user should not login everytime it closes the app. Is there any way to securely safe a (boolean) value, to check if the user is...
Noah
1

votes
1

answer
103

Views

Encrypted value is not matching between java and oracle 12c

The encrypted value from Java from the given code public static String encrypt(String data, String sessionuser) throws Exception { sessionuser = 'HVQKcI6yo425a4d6'; data = 'HelloWorld!'; byte[] keyValue = sessionuser.getBytes(); Key key = new SecretKeySpec(keyValue, 'AES'); System.out.println(key);...
rajesh
1

votes
1

answer
184

Views

php gnupg decrypt exists with “decrypt failed”

I try to encrypt and decrypt a string with php gnupg. The encryption work well. It could be decrypted via shell. When I try to decrypt the string with gnupg_decrypt it terminates with a simple 'decrypt failed'. I tried to regenerate the keys with different methods but the result is the same. The cod...
finder2
1

votes
0

answer
31

Views

To change sql query without using COALESCE CONCAT CASE STRING in encryption

SUBSTRING(COALESCE( CASE WHEN c.legal_type IS NULL THEN ' ' WHEN c.legal_type = 'INDIVIDL' THEN c.ssn ELSE c.tax_identifier END , ' '), 1, 9), c.birth_date, CASE WHEN c.legal_type IS NULL THEN ? WHEN c.legal_type = 'INDIVIDL' THEN c.first_name ELSE ? END , c.middle_name, substring((...
vijju smiles
1

votes
0

answer
37

Views

Encrypt decrypt DynamoDB Data based on client Auth

I have a use case of users and group. Data gets saved into dyanmodb. I am struggling with securing the data. I have user and group in Cognito. Data is saved/retrieved via DynamoDB, but I want to encrypt the data so that even I don't see it or even I can't modify it but all the users within the group...
paramupk
1

votes
0

answer
40

Views

How to protect my sqllitedb3 data from end user manipulation

I am using SqlLiteDb3 and SQLite dll for my windows application, Now i need to protect my data from end user by password protecting or db encrypting and decryption . How can i do this..?
Riyaz
1

votes
0

answer
81

Views

Encryption method is failing on one PC but works on others

I am having an issue where a file containing usernames and passwords is able to be decrypted on some machines but is failing on another. The machine that it fails on is a brand new installation of Windows 7 embedded. All that has been installed is my application and .net service pack 4.6.2 I did not...
TTalma
1

votes
0

answer
330

Views

.Net core 2.1 and channel encryption

I had an .Net Core 2.1 application (with Visual Studio 2017 / SQL Server 2016). I am in the security phase. I search a solution to respect the GDPR norm. TDE (Transparent Data Encryption) was chosen to encrypt the database (AlwaysEncrypted was not yet available for .Net Core). But with TDE, we encry...
Mel dev
1

votes
1

answer
56

Views

Service Fabric - Reliable Dictionary Encryption model

This question is related to Reliable objects used in Service Fabric. As we know that objects like Reliable Dictionary are stored in memory, which ultimately means that they are stored in some disk. Do we consider this data as 'Data at rest' ? If yes, then like other storage offerings in Azure, is th...
Vivek Khare
1

votes
0

answer
219

Views

Decrypting with OpenSSL gets bad decrypt ( C++ )

I am currently using the AES-CBC-256 method to decrypt a simple test string that is encrypted using the same method via php openssl. The exact error I'm getting is as follows: 11324:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:.\crypto\evp\evp_enc.c:531: The code being us...
frostyowned
1

votes
2

answer
75

Views

Encryption IV - C and Python equivalent

I have problems regarding initializing equivalent 'initialization vectors' for the encryption of my message. I have an ESP32 (microcontroller) sending Data via JSON to a Django Server. On the ESP32 I use the Arduino IDE, so the code on the ESP32 is written in C/C++. Django of course is using Python...
stofuser91
1

votes
1

answer
44

Views

AES and RSA: Avoid reprocessing one request?

I'm trying to send data between client and server securely. I encrypt sensitive data with AES, then the encryption key with RSA, and then use signatures to make sure data is not changed. It looks secure, but I heard about a bug, I don't know its name but that's how it works: first, the client sends...
Forat Bahrani
1

votes
1

answer
70

Views

Encrypting large streams to be sent via Amazon S3

I want to encrypt stream and then send it using Amazon S3. I'm using legacy code and have two important parameters: non-encrypted InputStream and its length. This is important as AmazonS3Client wants to know the length of the stream before it uploads it. Encrypting a stream is not very difficult tas...
menteith
1

votes
0

answer
24

Views

Padding is invalid and cannot be removed - randomly thrown by RijndaelManaged

I have searched for a good plain text file encryption in C# and came across a post on SO and have been using it for a while now. I don't remember the original post I got the code from; but here's the copy of the original code, slightly modified for my own use: public static class StringCipher { pri...
Latheesan
1

votes
1

answer
136

Views

Encrypt a RSA private key and write it to a file using Crypto++

I'm trying to export a RSA private key to a file, after encrypting it using RSA. So far, I tried to export it with 2 methods : int main() { AutoSeededRandomPool rnd; const std::string publickey_str = '-----BEGIN PUBLIC KEY-----\n' 'rsa public key there\n' '-----END PUBLIC KEY-----'; RSA::PublicKey...
EinderJam
1

votes
1

answer
359

Views

Replace Mcrypt Encription with OpenSSL Encription for OpenCart CMS

I have OpenCart 1.5.6.4 with encryption.php file in system library folder. The codes in encryption.php are : For migration from php 5.6 to php 7.2 , I need to replace Mcrypt Encription with OpenSSL Encription. I have replaced mcrypt_create_iv(32, MCRYPT_RAND) with openssl_random_pseudo_bytes(32, tru...
Pasakgroup
1

votes
1

answer
449

Views

Encrypt root volume of EC2 while creating stack using cloud formation

Working on cloud formation script which will create simple ec2 instance. here i want to encrypt a root volume at the time of launch. its possible to create a separate EBS, encrypt it and attach it as boot volume. but i couldn't find a way to encrypt it while launching. any way to do this? Thanks In...
Kiran
1

votes
0

answer
19

Views

Restricted premissions for passphrases using cryptsetup

Hello Stack community, when using cryptsetup (in Ubuntu console), is it possible to restrict the creation of new passphrases exclusively to the cases when the passphrase in the slot 0 is used? What I am aiming for is: 'admin' gets the password created at encryption (so, slot 0), 'user' get the subs...
olga.bio
1

votes
0

answer
155

Views

How to encrypt and decrypt data using memorystream, cryptostream and utf8 encoding correctly?

Actually i had wrote the coding for the program in c#, but when the Encrypt Part is empty, i cannot decrypt my encrypted data lonely. It is because my byte[] cipherdata is empty at the earlier part. How can I correct my coding? I use this program for bigger file. Need it to be faster and precise. pr...
Sean Nistar
1

votes
1

answer
55

Views

Decrypt/Decipher text

Good Day! This is my first time to ask question here in stackoverflow, cause usually I only read the solutions that has similar problem with mine. So my problem is, I had been given a task to decipher/decrypt the content of an excel file. (By the way i'm using PHP Language). I queried many times the...
Aciam297
1

votes
0

answer
341

Views

AES-GCM for file encryption in Python

I am trying to use AES-GCM encryption for file encryption in python. I am using Cryptodome package and I know exactly what to do to perform encryption/decryption using encrypt_and_digest and decrypt_and_verify on a single plaintext string based on this example. Now, I am trying to encrypt and decry...
A23149577
1

votes
0

answer
171

Views

Decoding & Verifying Base64urlUInt-Encoded Google Public Key using PyJWT

I'm trying to access & verify the id_token property of Google's OAuth API Response: { 'access_token': , 'token_type': 'Bearer', 'expires_in': 3600, 'id_token': } After obtaining my id_token value, I grab google's public key from their OpenIDConnect URI, the non-permanent link for which can be obt...
Tyrel Kostyk
1

votes
0

answer
33

Views

AmazonS3Encryption ignores EncryptionMaterials provided

I'm experimenting with retrieving an encrypted object from S3 (put there by SES). What I don't understand is no matter what paramater I provide to KMSEncryptionMaterialsProvider(x) , the object is unencrypted & retrieved successfully. Even providing a CMK that was not used by the encryption process...
eugenevd
1

votes
1

answer
444

Views

DES Encryption in Node.js

I've been trying to port this Java Program to Node.js. I've tried a few ways and still unable to get this done so far. Could be due to my limited knowledge in Cryptography. The Node.js Program I've written is this. var crypto = require('crypto'); var iv = crypto.randomBytes(8); var encrypt = functio...
Ali Haris
1

votes
0

answer
33

Views

Decryption providing a padding error

I'm trying to save a serialized object to an encrypted file. This isn't production quality and I am aware of the security risks with the way that I am doing this, but ignoring those I will have a key in a resource (data.Settings.key) that wont change and I have a salt that is also a constant. My en...
Dayne Dougan
1

votes
1

answer
48

Views

Implementing MAA algorithm using Cryptol

I tried to implement the MAA algorithm using Cryptol. Here is what I did so far, but I was not lucky. Any ideas? main: ([32], [32]) -> [32] main (x , y) = add (x , y)x where x = (take`{16} xy, drop`{16} xy) where xy = mul1 (x , y) mul1: ([32] ,[32]) -> [32] mul1 (x , y) = xy where xy =...
ananya
1

votes
1

answer
36

Views

Pycrytpo and mySQL problems

Hello I'm trying to store information in a mysql db. I want it to be encryped but I want to be able to get back to the plain text version from time to time. The column I'm currently working with is a varchar btw and I'm using Python3.6 and PyCrypto To encrypt, I call pycrypto's encrypt function whic...
1

votes
1

answer
42

Views

UIImage to compressed and encrypted data [closed]

I'm trying to create and send an encrypted image via an iMessage app. I've never done something like this before and I'm not even really sure where to start. I know that there are GitHub repos like this one that provide a lot of different encryption methods. I also know that Apple provides compressi...
InkGolem
1

votes
0

answer
81

Views

Azure Storage Client-side encryption: How should we handle encryption key renewal/rotation?

Azure storage client library has a feature for data encryption using envelope with AES symmetric key and certificate (store in key vault). The feature doesnt seem to support key rotation out of box. Is there any recommendation on how should we implement key rotation? Our service is currently using...
Duc Dang
1

votes
0

answer
135

Views

Encrypted Text Returns Weird Characters When Decrypted Using DESCryptographer

If I define encrypted text and decrypted text in the same brackets like, class Program { static void Main(string[] args) { SymmetricCryptograperManager symmetricCryptograperManager = new SymmetricCryptograperManager(); int key = 55999; var schema = symmetricCryptograperManager.GetSymmetricCryptograp...
RaZzLe
1

votes
0

answer
55

Views

Facing issue while trying to decrypt password using PBE(PBEWITHSHA1ANDDESEDE)

I have created a jar for encryption using PBE(PBEWITHSHA1ANDDESEDE) algorithm with Jasypt jar file. Creating encrypt password using this jar file on unix environment but when I am trying to decrypt that password in my local environment (Windows PC) it is throwing error. But when I am encrypting pass...
atul sharma
1

votes
1

answer
127

Views

pgp encryption with php “decryption failed”

I'm trying to encrypt and decrypt files with php. The files should be asynchronously decrypted with pgp. When I used the default gnupg-php-functions the encryption works well. I can decipher it on console. If I try to decipher it with php I always get an unspecific Exception: 'decryption failed' I'v...
finder2
1

votes
3

answer
97

Views

QR code doesnt read “ + ” symbol

While making a QR code for my encrypted link I noticed that the ' + ' sign wasn't included in the QR code. Sample link: http://localhost/cp//form?ASLV2N0+YmkHz6ELPjgEoqbA7qYQ69eoTReV9jSwEviaqJi8j54kQmpbaVK58LlFZmjhKG+X3uyPpZ6fC0/H2A== Is there anyway to remove the + symbol in my encryption? This is...
1

votes
1

answer
119

Views

Wireshark - Save decrypted ESP paquets to PCAP

I am looking for an export function in Wireshark (or tshark, whatever) to save my decrypted ESP paquets (decrypted with SPI, AES128-CBC, HMAC-SHA1 keys). Displayed paquets are decrypted but if I save them to a pcap file (With File > Save specific paquets), they are save as encrypted ... Same with ts...
cactuschibre
1

votes
1

answer
379

Views

Java/Kotlin AES-128-CBC encryption produces different result than OpenSSL

I'm trying to implement aes-128-cbc encryption in Kotin/Java. Unfortunately encryption-results differ from OpenSSL-output using same arguments. Arguments: Data: [[[1532347727425, 6481]]] Key: f70559cb976123807855fd9081f17760 IV: b7e5daacd367e143d20a0b536507a6d6 Kotlin-Implementation: const val AES...
user10126644
1

votes
0

answer
36

Views

AssertionError: Unknown node type: 3 when encrypting SOAP body content with dm.xmlsec.binding

I'm getting an error when I try to encrypt the body of a SOAP XML message using https://pypi.org/project/dm.xmlsec.binding/. Traceback (most recent call last): File './manage.py', line 14, in execute_from_command_line(sys.argv) File '/Users/romeroqj/.virtualenv/unhaggle/lib/python2.7/site-packages...
romeroqj
1

votes
0

answer
60

Views

linux gpg command → php gnupg library interpretation

I have a .sh code where I sign encrypt a .gz file with gpg command with user_ID. How can I get same output file from php library gnupg? .sh code: gpg -se -r ${GPG_USER} file.csv.gz output: file.csv.gz.gpg Current attempt code PHP: use gnupg; $gpg = new gnupg(); $gpg->addencryptkey('FINGERPRINT'); //...
siamanik

View additional questions