EDIT:
I would recommend to be more creative and use your own way to store/check the password so it is more difficult to extract the script, since this is an open source project everyone can see how the password is stored and advanced users can "quite easily" extract the script.