Absolutely...
ENCODE(str,password)
this encode string using password as the "key"
DECODE(str,password)
example:
DECODE(ENCODE("secret","scramble"),"scramble")
will produce "secret"
While you are studying the business of crypt/decrypt
Here is a niftly little script that I think you will find usefull:
you can download it and take a look at the souce, I think it will help you out:
http://snarkles.net/scripts/sneak/sneak.php