I have a CLI tool that writes encrypted data to the local filesystem that is never transmitted over the network. I am able to encrypt the data using ...
I have a CLI tool that writes encrypted data to the local filesystem that is never transmitted over the network. I am able to encrypt the data using ...
I'm implementing a third party API that asks me to encrypt the payload of a POST request "as done in this PHP example": I can't implement it in PHP ...
I can't instanciate my $pemkey whit a relative path in my php code. When I try to instanciate my key with openssl_pkey_get_private the program doesn't ...
Recently I am trying to find a way to encrypt data on PHP with a Public Key generated on javascript using window.crypto.subtle.generateKey() I then ...
So I have to convert some PHP code to C# and my PHP code does following: And now I wrote following Code in C#: Unfortunately, the result looks v ...
For testing purposes, I wrote encrypt.bash and decrypt.bash, to prove that the encrypted data saved to encrypted.txt can successfully be decrypted. H ...
I'm trying to decrypt in c#, using bouncycastle, the result of the following php code: <?php $plaintext = 'The quick brown fox jumps over the ...
function encrypt($string, $key) { $method = "BF-CBC"; $iv = random_bytes(openssl_cipher_iv_length($method)); $options = 0; $key = hash ...
I have an issue trying to manually compile PHP 7.4.x on Ubuntu Server 22.04LTS. There seems to be a compatibility problem between PHP 7.4 and OpenSSL ...
Screenshot is here I have built a website in PHP using the YII2 framework. When I use file_get_contents($requestUrl, false, stream_context_create($ar ...
I'm trying to encrypt something in JS using webcrypto/window.crypto to AES-256-CBC and trying to decrypt it using PHP's openssl_decrypt function. My ...
I want to decrypt an AES encrypted json file using Linux pre-installed openssl command line tool, but I cannot figure out how to setup the correct fla ...
I'm trying to implement 3DES in PHP (v7.4.6) using openssl_encrypt() but am having problems generating the correct ciphertext output. (I am aware that ...
I am trying to encrypt (openssl aes-256-cbc) a string through Windows command prompt and decrypt the result in PHP. I have done the encryption throug ...
I created this question to share a PHP version (based on the version at CryptoJS extra parameter in AES Encrypt. How to replicate with PHP?) of a scri ...
I am trying to replicate the following PHP class in Java to decrypt a string that was encrypted using openssl_encrypt in PHP. Here is my current sa ...
I'm trying to understand -> https://www.php.net/manual/en/function.openssl-sign.php which has &$signature parameter. I read this -> PHP & ...
Swish is a Swedish payment provider. You pay by simply sending money to a phone number. This is a API for the new PAYOUT-service offered by Swish. No ...
The PHP documentation for openssl_random_pseudo_bytes says: Return Values Returns the generated string of bytes on success, or false on failure. ...
I'm building a Docker image with Alpine, php7.2-fpm and Composer. The problem happens while trying to install Composer, which uses https to download ...