Created
June 13, 2016 04:58
-
-
Save mathewjosephh/47646ed3733e2f0776f9e44c8ea36668 to your computer and use it in GitHub Desktop.
Encrypt and decrypt information in Magento. By default, Magento uses MCrypt–Blowfish in ECB-Mode to encrypt Data, initialized with the security key you defined when you installed Magento.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$encrypted_data = Mage::helper('core')->encrypt('my secret value'); | |
$plain_data = Mage::helper('core')->decrypt($encrypted_data); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment