PHP - Explain each encryption function supported in PHP.

Explain each encryption function supported in PHP.

Mcrypt() supports many functions. Few are listed below.

- Mcrypt_cbc()- Encrypts data in Cipher block chain mode.
- Mcrypt_cfb()- Encysrtpts data cipher feedback (CFB) mode
- Mcrypt_decrypt()- Decrypts data.
- mcrypt_encrypt- Encrypts plaintext with given parameters
- mcrypt_generic- encrypts data
- mcrypt_get_key_size - Get the key size of the specified cipher
- mdecrypt_generic – dectpyts data

Explain each encryption function supported in PHP.

crypt(): The crypt() function returns the encrypted string by using DES algorithms.

encrypt(): The encrypt() function encrypts a string using a supplied key.

base64_encode(): This function encrypts the string based on 64 bit encryption.

base64_decode(): This function decrypts the 64 bit encoded string.

md5(): Calculates the MD5 hash of the string using RSA data security algorithm.
PHP - Explain GRANT commands and REVOKE commands with their syntax.
GRANT commands and REVOKE commands - GRANT – is used to assign or grant privileges to users...
PHP - Difference between the functions unlink and unset.
Difference between the functions unlink and unset - Unlink is used to delete the file used in the context....
PHP - Explain with an example how to insert javascript in php code.
Explain how to insert javascript in php code - JavaScript can be inserted by specifying the language as...
Post your comment