some encryption functions implemented along with xss filtering