I believe atob and btoa use checksums to prevent mungage. Why not use them? -- Larry Campbell The Boston Software Works, Inc. ARPA: maynard.UUCP:campbell at harvard.ARPA 120 Fulton Street UUCP: {harvard,cbosgd}!wjh12!maynard!campbell Boston MA 02109