Encrypt algorithm of phpbb