File: crypt.php3

package info (click to toggle)
freeradius 2.0.4%2Bdfsg-6
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 14,884 kB
  • ctags: 9,109
  • sloc: ansic: 73,328; sh: 12,392; php: 6,679; perl: 3,075; makefile: 1,316; sql: 1,197; python: 171; tcl: 35; sed: 23
file content (12 lines) | stat: -rw-r--r-- 199 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
<?php
function da_encrypt()
{
	$numargs=func_num_args();
	$passwd=func_get_arg(0);
	if ($numargs == 2){
		$salt=func_get_arg(1);
		return crypt($passwd,$salt);
	}
        return crypt($passwd);
}
?>