You can store your password as an md5.
example
$mypasswordmd5 = md5('mypassword');
print $mypasswordmd5;
That will print a encoded irrevirsible version of the password. Then you can say,
$mypasswordmd5 = '78csd987das67da9dsa5';
and check it with:
if(md5($givenpassword) == $mypasswordmd5) {
print 'Access Granted';
}