[Dovecot] Question about directory hash function.
28 May
2013
28 May
'13
7:45 a.m.
Hello, Timo.
I have a question about %H in http://wiki2.dovecot.org/Variables : what the hash function uses for calculations and how to get this value manually? This is need for bypass way getting home directory.
With best regards, Evgeny Basov.
13 Jun
13 Jun
5:21 a.m.
On Tue, 2013-05-28 at 09:45 +0400, Evgeny Basov wrote:
Hello, Timo.
I have a question about %H in http://wiki2.dovecot.org/Variables : what the hash function uses for calculations and how to get this value manually? This is need for bypass way getting home directory.
It's a pretty bad hash calculation: http://hg.dovecot.org/dovecot-2.2/file/754d244b8249/src/lib/hash.c#l501
In v2.2 hg there's now an MD5 based %N ("new hash") that gives much better distribution of values.
4179
Age (days ago)
4195
Last active (days ago)
1 comments
2 participants
participants (2)
-
Evgeny Basov
-
Timo Sirainen