Mercurial > p > roundup > code
comparison roundup/password.py @ 406:bdc2ea127ae9
Added module docstrings to all modules.
| author | Jürgen Hermann <jhermann@users.sourceforge.net> |
|---|---|
| date | Thu, 22 Nov 2001 15:46:42 +0000 |
| parents | d1fb3fcdb11b |
| children | 9b910e8d987d |
comparison
equal
deleted
inserted
replaced
| 405:f0b234ce301f | 406:bdc2ea127ae9 |
|---|---|
| 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" | 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" |
| 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, | 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
| 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 17 # | 17 # |
| 18 # $Id: password.py,v 1.3 2001-10-20 11:58:48 richard Exp $ | 18 # $Id: password.py,v 1.4 2001-11-22 15:46:42 jhermann Exp $ |
| 19 | |
| 20 __doc__ = """ | |
| 21 Password handling (encoding, decoding). | |
| 22 """ | |
| 19 | 23 |
| 20 import sha, re | 24 import sha, re |
| 21 | 25 |
| 22 def encodePassword(plaintext, scheme): | 26 def encodePassword(plaintext, scheme): |
| 23 '''Encrypt the plaintext password. | 27 '''Encrypt the plaintext password. |
| 111 if __name__ == '__main__': | 115 if __name__ == '__main__': |
| 112 test() | 116 test() |
| 113 | 117 |
| 114 # | 118 # |
| 115 # $Log: not supported by cvs2svn $ | 119 # $Log: not supported by cvs2svn $ |
| 120 # Revision 1.3 2001/10/20 11:58:48 richard | |
| 121 # Catch errors in login - no username or password supplied. | |
| 122 # Fixed editing of password (Password property type) thanks Roch'e Compaan. | |
| 123 # | |
| 116 # Revision 1.2 2001/10/09 23:58:10 richard | 124 # Revision 1.2 2001/10/09 23:58:10 richard |
| 117 # Moved the data stringification up into the hyperdb.Class class' get, set | 125 # Moved the data stringification up into the hyperdb.Class class' get, set |
| 118 # and create methods. This means that the data is also stringified for the | 126 # and create methods. This means that the data is also stringified for the |
| 119 # journal call, and removes duplication of code from the backends. The | 127 # journal call, and removes duplication of code from the backends. The |
| 120 # backend code now only sees strings. | 128 # backend code now only sees strings. |
