public static function setMd5($var) { return $var != '' ? Encrypter::md5($var) : null; }
public function exists($email, $password) { return self::db()->value($this->getPrimaryKey(), array('email' => $email, 'password' => Encrypter::md5($password))); }
public static function get($value = null) { return Encrypter::md5(Request::env('SERVER')->REMOTE_ADDR->val() . Request::env('SERVER')->HTTP_USER_AGENT->val() . Request::env('SERVER')->HTTP_HOST->val() . Session::id() . $value); }