Zip and encrypt using applescript

Hi,
I have created a script that once a file is dopped in a folder takes the file attach it and send it by mail.
Is there a way to encrypt the content of the file using applescript?

Thx
tony

What platform(s) do you need to support? If you’re sending to Mac OS X machines, use /usr/bin/hdiutil to create compressed, password-protected disk images.

you$ main hdiutil

If you have to support Windows and/or Linux as well, look into /usr/bin/zip and the -e flag.

Edit: I ALWAYS forget that /usr/bin/zip’s password protection is broken in Tiger. See this:

http://forums.macosxhints.com/showthread.php?p=310175#post310175

(I assume that thread was also started by you.)