Tagged articles
15 articles
Page 1 of 1
Laravel Tech Community
Laravel Tech Community
Jun 3, 2021 · Backend Development

Using mdecrypt_generic() to Decrypt Data in PHP

This article explains the PHP mdecrypt_generic() function, its parameters, and provides a complete example that demonstrates opening an encryption module, encrypting data, decrypting it back, and verifying the result while handling necessary initialization and cleanup steps.

decryptionencryptionmcrypt
0 likes · 2 min read
Using mdecrypt_generic() to Decrypt Data in PHP
Laravel Tech Community
Laravel Tech Community
Jun 1, 2021 · Backend Development

mcrypt_module_close() – Close Encryption Module (PHP)

The PHP function mcrypt_module_close() releases an opened encryption module by taking a resource descriptor as its argument and returns TRUE on success or FALSE on failure, providing a simple way to clean up cryptographic resources in backend applications.

Securityencryptionmcrypt
0 likes · 1 min read
mcrypt_module_close() – Close Encryption Module (PHP)
Laravel Tech Community
Laravel Tech Community
May 28, 2021 · Backend Development

PHP mcrypt_generic() Function for Data Encryption

The article explains PHP's mcrypt_generic() function, detailing its purpose for encrypting data, required parameters ($td as the encryption descriptor and $data as the plaintext), the need for block-size-aligned input, initialization and cleanup steps, and the nature of its returned encrypted output.

PHPSecurityencryption
0 likes · 2 min read
PHP mcrypt_generic() Function for Data Encryption
Laravel Tech Community
Laravel Tech Community
May 27, 2021 · Backend Development

PHP mcrypt_encrypt Function: Parameters, Usage, and Return Value

mcrypt_encrypt encrypts plaintext using a specified cipher, key, mode, and optional IV, returning the ciphertext as a string or FALSE on failure, with detailed explanations of each parameter—including cipher name, key length requirements, data padding, mode options, and IV usage—provided for PHP developers.

BackendPHPmcrypt
0 likes · 2 min read
PHP mcrypt_encrypt Function: Parameters, Usage, and Return Value