summaryrefslogtreecommitdiff
path: root/security/p5-Crypt-Tea_JS/pkg-descr
blob: e6b6edb64dcd2394322d87cbd50dd7d5095e9406 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
This module implements TEA, the Tiny Encryption Algorithm, and some Modes of
Use, in Perl and JavaScript.

The $key is a sufficiently longish string; at least 17 random 8-bit bytes for
single encryption.

Crypt::Tea_JS can be used for secret-key encryption in general, or, in
particular, to communicate securely between browser and web-host. In this case,
the simplest arrangement is for the user to enter the key into a JavaScript
variable, and for the host to retrieve that user's key from a database. Or, for
extra security, the first message (or even each message) between browser and
host could contain a random challenge-string, which each end would then turn
into a signature, and use that signature as the encryption-key for the session
(or the reply).

WWW: http://search.cpan.org/dist/Crypt-Tea_JS/