MediaWiki - CMS |
8.8 Single Sign On |
15.06.2007 |
| ← 8.7 Security | [ up ] - [ A - Z ] - [ top ] | 8.9 MySQL Database → |
Crypt::Lite - Perl Script
(clite.pl)
(/usr/local/apache2/htdocs/primus.example.net/.bin/clite.pl)#!/usr/bin/perl -w use strict; use Crypt::Lite; my $crypt = Crypt::Lite->new( encoding => 'hex8' ); print $crypt->encrypt($ARGV[0] || '', 'secret'); # No newline here
From PHP
You might put the following code snippet into includes/SpecialPreferences.php
... $clear = 'foo'; $secret = `/var/www/cgi-bin/clite.pl $clear`; ...
See also:
Includes specialpreferences
search.cpan.org/dist/Crypt-Lite/lib/Crypt/Lite.pm↑
← 8.7 Security
A - Z Index
Top
Disclaimer
8.9 MySQL Database →
$Id: sso.html,v 1.71 2007/06/15 11:49:14 webcms Exp $
copyright © 2005-2007 by reto