PageRenderTime 47ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/dialup_admin/lib/crypt/crypt.php3

https://github.com/Antti/freeradius-server
PHP | 12 lines | 12 code | 0 blank | 0 comment | 2 complexity | 0fe544a39e13e545de1e188e5d07b249 MD5 | raw file
Possible License(s): GPL-2.0, Unlicense, LGPL-2.1
  1. <?php
  2. function da_encrypt()
  3. {
  4. $numargs=func_num_args();
  5. $passwd=func_get_arg(0);
  6. if ($numargs == 2){
  7. $salt=func_get_arg(1);
  8. return crypt($passwd,$salt);
  9. }
  10. return crypt($passwd);
  11. }
  12. ?>