Here's a simple way to encrypt the contents of a message using the crypt command. The security level is fairly weak but it's not meant to be PGP. Here an example to encrypt and decrypt the contents of a file.
To encrypt
Encrypt with mykey in the open
# crypt mykey<not_encrypted_file>encrypted_file
Prompted for mykey
# crypt<not_encrypted_file>encrypted_file
Enter key:mykey
To decrypt
Decrypt with mykey in the open
# crypt mykey<encrypted_file | more
Prompted for mykey
# crypt<encrypted_file | more
Enter key:mykey
Mail the encrypted file as an attachment
Use a mail client such as Netscape, FireFox, or dtmail because it's easier to move the binary file.
#dtmail
This blog covers Unix system administration HOWTO tips for using inline for loops, find command, Unix scripting, configuration, SQL, various Unix-based tools, and command line interface syntax. The Unix OS supports tasks such as running hardware, device drivers, peripherals and third party applications. Share tips/comments. Read the comments. But most importantly: Read Disclaimer - Read Disclaimer.
2 comments:
Do you know of any windows (dos) based programs that encrypt/decrypt the same as the standard unix crypt command?
anon,
No, but I'm sure others might have a few suggestions.
Post a Comment