Advertisement
Guest User

eric

a guest
May 5th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. protected function _cryptValue($value)
  2. {
  3. return implode(self::DELIMITER_CHAR, $this->__reverseArray(array_map(function ($token) { return dechex(ord($token)); }, str_split($value))));
  4. }
  5.  
  6. protected function _decryptValue($value)
  7. {
  8. return implode('', $this->__reverseArray(array_map(function ($token) { return chr(hexdec($token)); }, explode(self::DELIMITER_CHAR, $value))));
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement