Crypto.mod v1.3



Crypto.mod is a simple loadable module for tcl 8.1+ (possibly older, not tested).
The module supports the blowfish, twofish and rijndael ciphers.


Commands provided by module:

  • bencrypt <key> "string"
-- encrypt a string using blowfish
  • bdecrypt <key> "string"
-- decrypt a string using blowfish
  • bencpass "string"
-- create a one way password hash using blowfish
 
  • tencrypt <key> "string"
-- encrypt a string using twofish
  • tdecrypt <key> "string"
-- decrypt a string using twofish
  • tencpass "string"
-- create a one way password hash using twofish
 
  • rencrypt <key> "string"
-- encrypt a string using rijndael
  • rdecrypt <key> "string"
-- decrypt a string using rijndael
  • rencpass "string"
-- create a one way password hash using rijndael
 
  • For all encryption/decryption functions, if no key is passed, the default key (defined in defkey.h) is used.
    This key is dynamically generated during make.

Download Here




Install:

That's it, you're done. Now, just copy 'crypto.so' to someplace accessible by your script, load it and enjoy.

NOTE: DO NOT SOURCE THIS...IT IS NOT A SCRIPT!

I use something like the following:

if {![string match *Crypto* [package names]]} { load crypto.so }

This assumes that crypto.so is located in your current working directory. That's it, nothing more to say.



Aaron Hurt (leprechau@EFnet)
A 'n B Computing Solutions
ahurt 'at' anbcs.com


Valid HTML 4.01! SourceForge.net Logo