Advertisement
Guest User

Untitled

a guest
Jun 27th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. class User
  2. {
  3. private $username = '';
  4. private $password = '';
  5.  
  6. public function setPassword($password){
  7. $this->password = encript($password);
  8. }
  9.  
  10. public function getPassword(){
  11. return $this->password;
  12. }
  13.  
  14. function encript($data){
  15. return sha1($data);
  16. }
  17. }
  18.  
  19. $this->password = encript($password);
  20.  
  21. $this->password = $this->encript($password);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement