Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class User
- {
- private $username = '';
- private $password = '';
- public function setPassword($password){
- $this->password = encript($password);
- }
- public function getPassword(){
- return $this->password;
- }
- function encript($data){
- return sha1($data);
- }
- }
- $this->password = encript($password);
- $this->password = $this->encript($password);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement