mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
ad4f267b7a
search.cpan.org is shutting down. It will redirect to metacpan.org after June 25, 2018. With hat: perl
17 lines
809 B
Plaintext
17 lines
809 B
Plaintext
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: https://metacpan.org/release/Crypt-Tea_JS
|