[Python-checkins] CVS: python/dist/src/Doc/lib libcrypt.tex,1.14.4.1,1.14.4.2

Fred L. Drake fdrake@weyr.cnri.reston.va.us
Wed, 16 Feb 2000 10:15:44 -0500 (EST)


Update of /projects/cvsroot/python/dist/src/Doc/lib
In directory weyr:/home/fdrake/projects/python/Doc-152p1/lib

Modified Files:
      Tag: release152p1-patches
	libcrypt.tex 
Log Message:

Latest round of changes from Peter Funk <pf@artcom-gmbh.de>.

Moved all authoring attributions to the markup; none remain in the
text.  Permission received from both authors.


Index: libcrypt.tex
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Doc/lib/libcrypt.tex,v
retrieving revision 1.14.4.1
retrieving revision 1.14.4.2
diff -C2 -r1.14.4.1 -r1.14.4.2
*** libcrypt.tex	2000/02/14 22:17:08	1.14.4.1
--- libcrypt.tex	2000/02/16 15:15:41	1.14.4.2
***************
*** 8,11 ****
--- 8,12 ----
  \moduleauthor{Steven D. Majewski}{sdm7g@virginia.edu}
  \sectionauthor{Steven D. Majewski}{sdm7g@virginia.edu}
+ \sectionauthor{Peter Funk}{pf@artcom-gmbh.de}
  
  
***************
*** 18,28 ****
  
  \begin{funcdesc}{crypt}{word, salt} 
! \var{word} will usually be a user's password as typed at a prompt or
! in a graphical interface.  \var{salt} is usually a random
! two-character string which will be used to perturb the DES algorithm
! in one of 4096 ways.  The characters in \var{salt} must be in the set
! \regexp{[./a-zA-Z0-9]}.  Returns the hashed password as a string,
! which will be composed of characters from the same alphabet as the
! salt (the first two characters represent the salt itself).
  \end{funcdesc}
  
--- 19,29 ----
  
  \begin{funcdesc}{crypt}{word, salt} 
!   \var{word} will usually be a user's password as typed at a prompt or 
!   in a graphical interface.  \var{salt} is usually a random
!   two-character string which will be used to perturb the DES algorithm
!   in one of 4096 ways.  The characters in \var{salt} must be in the
!   set \regexp{[./a-zA-Z0-9]}.  Returns the hashed password as a
!   string, which will be composed of characters from the same alphabet
!    as the salt (the first two characters represent the salt itself).
  \end{funcdesc}
  
***************
*** 32,35 ****
--- 33,37 ----
  \begin{verbatim}
  import crypt, getpass, pwd
+ 
  def login():
      username = raw_input('Python login:')
***************
*** 39,45 ****
              raise "Sorry, currently no support for shadow passwords"
          cleartext = getpass.getpass()
!         return crypt(cleartext, cryptedpasswd[0:2]) == cryptedpasswd
  \end{verbatim}
- 
- The module and documentation were written by Steve Majewski.
- \index{Majewski, Steve}
--- 41,46 ----
              raise "Sorry, currently no support for shadow passwords"
          cleartext = getpass.getpass()
!         return crypt(cleartext, cryptedpasswd[:2]) == cryptedpasswd
!     else:
!         return 1
  \end{verbatim}