What is the best PHP encrypt decrypt classes class? #encrypt decrypt classes
Edit
by Sridhar Thirumalai Ananthanpillai - 9 years ago (2015-12-28)
Secure Encryption and Decryption of classes
| Kindly suggest me a very high secure encryption and decryption class that will fullfil my high level security requirement. |
- 1 Clarification request
1.
by Matthias Kaschubowski - 8 years ago (2016-10-19) Reply
What do you want to encrypt and why ?
Ask clarification
6 Recommendations
HAB Encryption: Encrypt and decrypt a string with a given key
This class can encrypt and decrypt a string with a given key.
It takes a given string and encrypts it by adding the code of o the characters in the string with the codes of the key string.
The class can also do the opposite process by reverting to the original string using the same key.
It can also encode the result encrypted string with base64 and store it on a file.
| by Mega sploder 180 - 8 years ago (2016-11-27) Comment
This class can encrypt and decrypt a string with a given key.
|
easy to create form using extended tag and restore form value automagically
| by bastian lauterborn 90 - 8 years ago (2016-07-31) Comment
simple you can also do just so..
if(isset($_REQUEST['encode'])){exit(base64_encode($_REQUEST['encode']));}
if(isset($_REQUEST['decode'])){exit(base64_decode($_REQUEST['decode']));}
file.php?encode=hello world...
|
This class can encode and decode data in base64 in pure PHP.
It can take a data string and encode it using the base64 algorithm.
The class can also do the opposite, i.e. decode base64 encoded data and return the original data string.
| by Haseeb Ahmad Basil package author 505 - 9 years ago (2016-01-25) Comment
Base64 Encode and Decode pure PHP. |
PHP Ghost Crypt: Encrypt PHP code and generate self decrypting code
This class can encrypt PHP code and generate self decrypting code.
It can take a given PHP script and encrypts its code with a given key.
The class generates an output script that contains the encrypted code in comment lines starting with #:# and code to decrypt and execute the encrypted code.
| by Dave Smith 7620 - 9 years ago (2016-01-03) Comment
This package has 2 unique properties. First it generates a self decrypting file from the original and second it provides a way to supply a secret keyword so that if someone takes the code, they can't read or implement it without knowing the secret.
As mentioned, nothing is super secure in pure php. To get super secure, you will need to get an encoder like sourceGuardian, Nusphere's NuCoder, Zend's zendGaurd, etc... The advantage to these encoders is that your code will actually run faster.
Dave |
PHP Code Encryption: Obfuscate PHP scripts by replacing variable names
This class can be used to Obfuscate PHP scripts by replacing variable names.
It can parse a given PHP script and replace the names of the variables it uses with more obfuscated names.
The new names of the replaced variables can be retrieved by looking at a variable of the class.
| by Manuel Lemos 26695 - 9 years ago (2016-01-01) Comment
I think encryption is not really a good idea for pure PHP solutions because decryption takes time and delays the execution of your code and they really do not prevent people to steal your code.
Anyway, this class creates obfuscated versions of your code making them harder to read and understand.
If you really want to go further you can create phar archives from your classes. Phar archives can also be easily decoded but many people without much people knowledge do not know how to do it. |
Cripto PHP: Encrypt and decrypt PHP source code files
This class can encrypt and decrypt PHP source code files.
It can read a given PHP script file and encrypt it with a given password. The encrypted data is encoded with base64.
The class can also do the opposite, i.e. read a previously encrypted file, decrypt it with the same password and execute it as PHP code.
| by Miguel 235 - 9 years ago (2016-01-01) Comment
This class is good |