Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected function _cryptValue($value)
- {
- return implode(self::DELIMITER_CHAR, $this->__reverseArray(array_map(function ($token) { return dechex(ord($token)); }, str_split($value))));
- }
- protected function _decryptValue($value)
- {
- return implode('', $this->__reverseArray(array_map(function ($token) { return chr(hexdec($token)); }, explode(self::DELIMITER_CHAR, $value))));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement