home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V6 / usr / man / man3 / crypt.3 < prev    next >
Encoding:
Text File  |  1975-06-26  |  774 b   |  35 lines

  1. .th CRYPT III 4/30/73
  2. .sh NAME
  3. crypt \*- password encoding
  4. .sh SYNOPSIS
  5. .ft B
  6. mov    $key,r0
  7. .br
  8. jsr    pc,crypt
  9. .s3
  10. char *crypt(key)
  11. .br
  12. char *key;
  13. .ft R
  14. .sh DESCRIPTION
  15. On entry, r0 points to a string of
  16. characters terminated by an ASCII NUL.
  17. The routine
  18. performs an operation on the key which is difficult to invert
  19. (i.e. encrypts it) and leaves the resulting eight bytes
  20. of ASCII alphanumerics in a global cell called ``word''.
  21. .s3
  22. From C, the
  23. .it key
  24. argument is a string
  25. and the value returned is a pointer to the eight-character
  26. result.
  27. .s3
  28. This routine is used to encrypt all passwords.
  29. .sh "SEE ALSO"
  30. passwd(I), passwd(V), login(I)
  31. .sh BUGS
  32. Short or otherwise simple passwords can be decrypted
  33. easily by exhaustive search.
  34. Six characters of gibberish is reasonably safe.
  35.