Linked Questions
64 questions linked to/from How do you Encrypt and Decrypt a PHP String?
2 votes
1 answer
27k views
Best encryption/decryption with salt in PHP 7 [duplicate]
I am looking for the simplest and secured way to encrypt/decrypt a string with a specific salt in PHP7 my string + specific salt = encryped data decode(encryped data) = my string I saw this post, ...
6 votes
4 answers
28k views
Encrypt and Decrypt String With Key PHP [duplicate]
I'm looking for some functions to encrypt and decrypt strings in php using a key specified. Thanks!
1 vote
3 answers
2k views
Encrypting gives error for invalid key size [duplicate]
I am creating a random key, then i want to encrypt it using a good algorithm, then I want to encrypt the data with this encrypted key. My code is: $iv=16; //128bits $datakey = base64_encode(...
0 votes
0 answers
268 views
Encrypting Data Using the defuse/php-encryption [duplicate]
I am trying to write an application that requires me to encrypt users data, I have a couple of questions regarding encryption Is "defuse/php-encryption" secure to use in a business environment? How to ...
2 votes
0 answers
176 views
Need help for PHP encode and decode with a security key [duplicate]
I want to encode links for hiding the source. I tried simple PHP base64_encode and I was happy but the problem is that anyone can easily decode that code. So if I can add one security key then it'll ...
0 votes
0 answers
122 views
Client side encryption of posts with user defined string [duplicate]
I need to provide my users the assurance of privacy in their posts. The posts are classic HTML generated by tinyMCE. I need the users to define their encryption string before they save the post. I ...
218 votes
8 answers
318k views
Best way to use PHP to encrypt and decrypt passwords? [duplicate]
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 ...
46 votes
6 answers
86k views
Encrypt with PHP, Decrypt with Javascript (cryptojs)
I'm having trouble with basic encryption/decryption. I've looked all around for a working example but haven't quite found a working example. -I will be encrypting in php, decrypting with cryptojs for ...
21 votes
5 answers
75k views
How do I encrypt a string in PHP?
I want to make an encryption function that should have some secret key. Something like the following: function encrypt($string) { $key = "mastermind"; $enc = encryptfunc($string, $key); ...
22 votes
2 answers
46k views
How can I store sensitive data securely in a MySQL database?
I am making an employment application for a company I am working for. I've got it to protect against SQL injection and some XSS techniques. My main issue is keeping sensitive information secured, like ...
12 votes
4 answers
62k views
PHP sending encrypted data via the URL
I'm trying to send encrypted data over the url to another site (using file_get_contents("anotherUrl.php?hash=$encryptedString"). The problem is, sometimes, the encryption contains some special ...
3 votes
2 answers
13k views
Creating access token by encrypting user's id + time as JSON
I'm making an API and I'm new into it. I thought of this idea for creating an access token. Basically, we encrypt JSON data with a key, turn it to Base64 and return it as the access token. Later, API ...
1 vote
4 answers
9k views
How to use 'defuse/php-encryption'?
I've dowloaded 'defuse/php-encryption' from GitHub. I tried the exemple founded here : How do you Encrypt and Decrypt a PHP String? but I didn't succeed. "test.php" is in the same folder with "...
0 votes
2 answers
7k views
How to encrypt and decrypt data in the mysql database using php?
I want to encrypt some data within my php file when I add the stuff to my mysql database. This is how I do it. I create a static key like: $key = md5("uJHyFVSG"); Then I have two functions called ...
5 votes
1 answer
4k views
Using AES Encryption for sensitive data in MYSQL - Implementation Questions
There are a number of questions that discuss storing sensitive information in MYSQL using encryption. Some make great suggestions about hardening the web server, database server, and web application (...