MDL-28948 - lib - removed the hard coded key for the rc4encryt function.

This commit is contained in:
adrian@moodle.com 2011-12-02 16:33:25 +08:00
parent f89a83b87b
commit 98456628a2

View File

@ -7213,7 +7213,7 @@ class emoticon_manager {
* @return string The now encrypted data
*/
function rc4encrypt($data) {
$password = 'nfgjeingjk';
$password = get_site_identifier();
return endecrypt($password, $data, '');
}
@ -7226,7 +7226,7 @@ function rc4encrypt($data) {
* @return string The now decrypted data
*/
function rc4decrypt($data) {
$password = 'nfgjeingjk';
$password = get_site_identifier();
return endecrypt($password, $data, 'de');
}