in reply to Encryption using Tea algorithm (New Variant)

mkirank,

Did you read the documentation and try any of the examples?
Often the easiest way to find out if you can do something is to try it.

"I could not find anything on how to use the same (encrypt method of Tea_JS uses CBC). "

From the documentation:

"encrypt( $plaintext, $key ); Encrypts with CBC (Cipher Block Chaining)"


I can't install this module at the moment, try an short example program like:
#!/usr/bin/perl use strict; use warnings; use Crypt::Tea_JS; my $key = '0123456789ABCDEF0123456789ABCDEF'; my $plaintext = 'hello world'; my $ascii_cyphertext = &encrypt ($plaintext, $key); print "\n$ascii_cyphertext";

Hope this helps.

Martin