diff options
| author | viega | 1998-05-30 16:15:08 +0000 |
|---|---|---|
| committer | viega | 1998-05-30 16:15:08 +0000 |
| commit | 28f8e182ad5ac9eabae4a9fb6aed6b8ec3db71e3 (patch) | |
| tree | d585587983618c2552c4cbc24b2ef9b73115b44d /modules/mm_crypt.py | |
| parent | 801e9a70e41c85b8e91fd074020166944e419363 (diff) | |
| download | mailman-28f8e182ad5ac9eabae4a9fb6aed6b8ec3db71e3.tar.gz mailman-28f8e182ad5ac9eabae4a9fb6aed6b8ec3db71e3.tar.zst mailman-28f8e182ad5ac9eabae4a9fb6aed6b8ec3db71e3.zip | |
Added mm_crypt, which trys to import crypt, and provides a wrapper
interface to an md5 digest if the import fails. This way, we don't
have to tell people to recompile python if they compiled it out of the
box. (since crypt is no longer in by default).
mm_security now uses mm_crypt instead of crypt.
Diffstat (limited to 'modules/mm_crypt.py')
| -rw-r--r-- | modules/mm_crypt.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/mm_crypt.py b/modules/mm_crypt.py new file mode 100644 index 000000000..f495cdd2c --- /dev/null +++ b/modules/mm_crypt.py @@ -0,0 +1,8 @@ +try: + from crypt import * +except ImportError: + def crypt(string, seed): + import md5 + m = md5.new() + m.update(string) + return m.digest()
\ No newline at end of file |
