Questions tagged [aes]

The Advanced Encryption Standard (AES) stands as a paramount cryptographic block cipher algorithm.

Enhancing Security: Employing Prepared Statements with AES_ENCRYPT and Bind Variables

I've been encountering an issue when trying to encrypt a specific data variable. The error message I keep receiving is "PHP Fatal error: Call to undefined function AES_ENCRYPT()...". After conducting some research, it seems that the problem may arise from ...

How can I use PHP's openssl_encrypt() function in Objective-C for iOS development?

I am attempting to utilize the openssl_encrypt() method from php in iOS Objective-C. In order to do so, I have written the following code snippet: #import <CommonCrypto/CommonHMAC.h> #import <CommonCrypto/CommonCryptor.h> - (void)v ...

Using PHP encryption and decrypting with AES in Angular using Crypto-JS

I have successfully implemented encryption and decryption in PHP using aes-256-cbc. However, I am now facing a challenge in decrypting the same content in Angular 7. Encryption in php using aes-256-cbc by following method $this->data ="plaintext&qu ...

Having trouble with AES decryption on my nodeJS/ExpressJS server backend

Looking to decipher data post retrieval from mongoDb. The retrieved data comprises encrypted and unencrypted sections. app.get("/receive", async (req, res) => { try { const data = await UploadData.find(); const decryptedData = data. ...

Utilizing AES encryption in C# and decrypting it in Angular, converting it from a byte[] / number array with the help

I am looking to securely encrypt and decrypt a byte[] in a C# API endpoint, then convert the decrypted document to base64 for viewing in a PDF viewer within an Angular 14 app. I came across this helpful guide on Stack Overflow [https://stackoverflow.com/q ...

Cookie data that cannot be decrypted randomly by AES

I'm encountering an issue when it comes to writing and parsing certain DATA from stored cookies. Below are my encrypt and decrypt functions, which I discovered in a different discussion here. function decrypt($crypttext){ $crypttext = base64_d ...

Transforming Python AES into Node JS

I've encountered a challenge trying to make existing legacy Python code encrypt/decrypt data the same way as NodeJS. Although the first 16 characters are correctly decoded, I'm facing issues with the rest of the process. Here's the Python code snippet: f ...