473,386 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

crypt, md5, sha modules

Hi, I don't know wether this is really the best place for asking this
question. If you know a better, please tell me.

The problem is an understanding of the 3 modules for hash algorithms. I
need a script to create hashed passwords (the user enters his password
and gets back the hash for it).
I need this for password verification in the mailserver exim, since it
supports hashed passwords. The user then sends his password in clear
(but always by using SSL), exim creates a hash and compares it to the
one in a specific file (there will be the hash created by my python
script).

Well, it works with the crypt module. But exim also supports an md5
hashing. Now I would like to use that, since it supports much better
passwords. But the md5 module works in a very different way than crypt.
Does anyone know whether such hashes are compatible with exim?

What makes me think about it is, that there is no salt and that the
output is non-ascii unless I use hexdigest() which only returns hex
numbers (when I look into my /etc/shadow each hash contains alphanumeric
characters).

And if possible I would also like to use sha, cause it is even a bit
more safer than md5, but am not sure, whether this is supported by exim.

So my main question is: can I use the md5 module for creating hashes
compatible with exims md5-function? And if so, how?

Thanks in advance for your help
Marco

--
Marco Herrn he***@gmx.net
(GnuPG/PGP-signed and crypted mail preferred)
Key ID: 0x94620736

Jul 18 '05 #1
1 2323
Marco Herrn <he***@gmx.net> writes:
So my main question is: can I use the md5 module for creating hashes
compatible with exims md5-function? And if so, how?


Examine the exim source code and see what it's doing, then code
something interoperable with the md5 module.
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: | last post by:
I'm curious how these two functions work together (when crypt() uses a md5 algo). Currently I know they will produce different output; is this due to the salt being used behind-the-scenes in md5()?...
3
by: Marco Herrn | last post by:
I want to use a crypt function to store crypted passwords. These will be used to verify mail-user access. Now the crypt() function from the module crypt is only significant for the first 8...
7
by: Bart Nessux | last post by:
Does Python have anything similar to Perl's Crypt::PasswdMD5??? I read about the crypt module... but it only does DES. Any plans to add md5 or other digests to it in the future?
0
by: AdrianK | last post by:
I'm having a lotta problems installing Crypt::RSA on Linux Linux gogol 2.4.17smt-mono using perl5.005_03. Main problem at present is that all the tests fail with Crypt::Primes When I run a trace...
0
by: John Bergstrom | last post by:
Hello everyone! I wrote a simple perl program to encrypt a string using Crypt::OpenSSL::RSA. Everything as described in the module documentation. The public key is a valid X.509 encrypted...
1
by: alex | last post by:
hello, need help with the subject. i need a module. unfortunately official PPM way doesn work for me (proxy/firewall issues). i am trying to install it manually. what i basically do is i run...
1
by: steve | last post by:
Hi, I have a set of passwords encrypted using perl’s crypt, from a perl forum being migrated to php. I like to bring them into php, and use them without changing them. How do I emulate perl’s...
2
by: Fabio DONNA | last post by:
Hello, I'd like to store in an MS Access table some password, stored with MD5 method. Do you know about MS Access free libraries-modules to MD crypt strings? They must be free because DB will be...
7
by: Kenjis Kaan | last post by:
I would like to use the crypt function in a Win32 (ie. C program using Visual C++ 6.0 compiler). I wrote a little program to see if it will link but it didn't. So I guess maybe the function isn't...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.