function crypt($key) { if (!empty($this->crypt)) { $this->crypt = Paste::cxor($this->crypt, $key); } else { $this->crypt = Paste::cxor(sha1($key), $key); } if ($this->crypt == sha1($key)) { $this->content = Paste::cxor(base64_decode($this->content), $key); } else { $this->content = base64_encode(Paste::cxor($this->content, $key)); } }