Skip to main content
4 votes
1 answer
137 views

How to decrypt a value in Python that was encrypted using PHP openssl

I have a value that was encrypted using PHP openssl using cipher AES-CBC-256 but the passphrase for the final value was also encrypted using the same method. openssl_encrypt($key, $cipher, $passphrase,...
kfernandez's user avatar
1 vote
1 answer
198 views

Proper approach to encrypt large files that cannot be completed in a single function call?

I've been experimenting (from the CLI) with the encryption examples at https://www.php.net/manual/en/function.openssl-encrypt.php and would like to know how to handle a larger file, such as a SQLite ...
Gary's user avatar
  • 3,226
1 vote
1 answer
193 views

FPDF's SetProtection script password protecting since Amazon Linux 2023

We have been using FPDF on our AWS EC2 instances for many years and for some of the documents, we use the SetProtection script to encrypt them, allowing only "print" as the possible option. ...
Dave Spencer's user avatar
0 votes
0 answers
34 views

implement volume payment API using PHP

I'm trying to implement a payment using a Volume webhooks. I'm getting some errors on prodution machine: error:0480006C:PEM routines::no start line error:02000068:rsa routines::bad signature error:...
Cleber Castiglioni's user avatar
0 votes
0 answers
77 views

Trying to verify a signature using openssl_pkey_get_public()

I'm trying to verify a signature using the Volume API for make a payment. According to them, I need to, To verify the signature, consume the original, unmodified payload sent from Volume and verify it ...
Cleber Castiglioni's user avatar
0 votes
0 answers
76 views

Encrypt in Python, Decryp in PHP using AES/OpenSSL

I am struggling with encrypting a string in python and decrypting the result in PHP. Here is what I do: from Crypto.Cipher import AES #pycryptodome from base64 import b64encode,b64decode plainData = ...
Stefan's user avatar
  • 31
-1 votes
1 answer
158 views

PHP function openssl_encrypt cipher operation failing

I have a PHP script that will encrypt data to store in a database, but when I run the script, the openssl_encrypt returns false with the error: "error:1C800066:Provider routines::cipher operation ...
beans-are-gross's user avatar
0 votes
0 answers
103 views

XAMPP, Apache crashes when OpenSSL extension is enabled in php.ini

When i enable extension=openssl in my php.ini and restart apache, the apache crashes with the following error: [Fri Jun 21 17:49:05.001805 2024] [ssl:warn] [pid 15484:tid 720] AH01909: www.example....
DEVOPS TEAM's user avatar
2 votes
1 answer
334 views

how to create CSR in PHP?

I am trying to create CSR using PHP and OpenSSL extension, but when I do that it gives me an error which says: Failed to generate private key: error:2006D080:BIO routines:BIO_new_file:no such file ...
momo's user avatar
  • 73
1 vote
1 answer
534 views

Laravel - How to Encrypt and Decrypt Large Files in Chunks?

I was initially encrypting files directly without using chunks and started encountering an error when trying to encrypt large files: Allowed memory size of 134217728 bytes exhausted After some ...
9uifranco's user avatar
  • 562
0 votes
0 answers
148 views

PHP Sodium Encryption/Decryption Fails Despite Consistent Configuration and Keys

I'm experiencing an issue with PHP Sodium encryption and decryption. Despite ensuring that the keys, configuration, and environments are consistent, decryption consistently fails. PHP Version 8.2 ...
mybackhurtstoomuch12's user avatar
0 votes
0 answers
77 views

PHP openssl lib / ECDSA / How set random number for openssl_sign function?

How set (or get after signing) random number for function openssl_sign? $pkEcPem = "-----BEGIN EC PRIVATE KEY-----302e0201010420...a00706052b8104000a-----END EC PRIVATE KEY-----" $pk = ...
Andriy's user avatar
  • 11
0 votes
1 answer
860 views

In PHP openssl, how to get public certificate PEM for website?

To get the public certificate (PEM) for a website in FireFox, I do this: Go to website, eg., https://stackoverflow.com , and click on padlock icon in address bar. Click on Connection secure -> ...
Boycott A.I.'s user avatar
  • 19.2k
0 votes
0 answers
150 views

Verify signed data using PHP openssl with RSA SHA1

I am trying to verify signed data response using php openssl. I am using php openssl verify method but i cant get it to verify even though the signed data is valid I tried the following <?php $data=...
Toki's user avatar
  • 294
0 votes
2 answers
691 views

Encrypt in JS and Decrypt in PHP using AES encryption algorithm in GCM and Base64 encoding

I am try to Encrypt data in JS and Decrypt it in PHP using AES encryption algorithm in GCM and Base64 encoding. But during decryption I always get false as result without any openssl error. I have ...
Gabriel Rogath's user avatar

15 30 50 per page
1
2 3 4 5
28