in reply to Re^4: Question about encryption key length
in thread Question about encryption key length

Well, i'll continue making assumptions ...
The system you want (if it is what i think) is like this:

If this is you want to do; why do not reuse (modern Unixes|GNU/Linux) way? ... I mean:

MD5 algorithm is commonly used for getting these digests. Yes, md5 is not very secure, but there are other hash functions you can use (Digest::MD5, Digest::SHA1) ...
I recommend you to search on Bruce Scheneier site for a recommedation on what hash/digest algoritm to use ...

regards

turo

perl -Te 'print map { chr((ord)-((10,20,2,7)[$i++])) } split //,"turo"'