1 # Copyright 2003-2007 Interchange Development Group and others
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version. See the LICENSE file for details.
8 # $Id: crypt.coretag,v 1.6 2007-03-30 23:40:54 pajamian Exp $
10 UserTag crypt Order value salt
11 UserTag crypt attrAlias password value
12 UserTag crypt attrAlias crypted salt
13 UserTag crypt Version $Revision: 1.6 $
14 UserTag crypt Routine <<EOR
16 my ($string, $salt) = @_;
17 return crypt($string, $salt ? $salt : Vend::Util::random_string(2))