All Questions

206
votes
8answers
234196 views

Best way to use PHP to encrypt and decrypt passwords?

Possible Duplicate: PHP 2-way encryption: I need to store passwords that can be retrieved I plan to store foreign account information for my users on my website, aka rapidshare username and...
326
votes
20answers
206495 views

Laravel requires the Mcrypt PHP extension

I am trying to use the migrate function in Laravel 4 on OSX. However, I am getting the following error: Laravel requires the Mcrypt PHP extension. As far as I understand, it's already enabled (see ...
17
votes
3answers
29398 views

How to add/remove PKCS7 padding from an AES encrypted string?

I'm trying to encrypt/decrypt a string using 128 bit AES encryption (ECB). What I want to know is how I can add/remove the PKCS7 padding to it. It seems that the Mcrypt extension can take care of the ...
4
votes
1answers
2982 views

Preparing for removal of Mcrypt in PHP 7.2

So as time moves on mcrypt will go in PHP 7.2. Of course there is an alternative: openssl. I find it difficult to switch from mcrypt to openssl, using AES 256 CBC and preserving IVs. I am sort of new...
13
votes
1answers
1010 views

Upgrading my encryption library from Mcrypt to OpenSSL

I am using the below commonly referenced library for encryption. I want to upgrade it to OpenSSL from Mcrypt so that I am no longer using a deprecated library. I'm trying to find out if this is even ...
21
votes
4answers
60563 views

Encrypting / Decrypting file with Mcrypt

Trying to write a couple of functions that will encrypt or decrypt a file and am using the class found here to try and accomplish this: http://www.itnewb.com/v/PHP-Encryption-Decryption-Using-the-M...
13
votes
1answers
11302 views

Replace Mcrypt with OpenSSL

currently we have a mcrypt implentation on our systems to crypt some sensible data in our PHP application. Now we have a new requirement that we have to change the crypt module to openssl. Another thi...
1
votes
2answers
11139 views

Encryption in JavaScript and decryption with PHP

I'm encrypting my user password in JavaScript like this: var encryptedPassword = CryptoJS.AES.encrypt(password, "Secret Passphrase"); It works fine but now I'm trying to decrypt in PHP on the serv...
33
votes
7answers
21052 views

mcrypt is deprecated, what is the alternative?

The mcrypt-extension is deprecated will be removed in PHP 7.2 according to the comment posted here. So I am looking for an alternative way to encrypt passwords. Right now I am using something like m...
18
votes
1answers
18705 views

Cross platform (php to C# .NET) encryption/decryption with Rijndael

I'm currently having a bit of problem with decrypting a message encrypted by php mcrypt. The php code is as following: <?php //$iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CBC)...

Previous Next