|
|
| Author |
Message |
|
| yogi |
Posted: Thu Jul 19, 2007 10:24 am |
|
|
|
Joined: 13 Jul 2007
Posts: 3
|
Hello,
This is a library that hashes strings using the SHA-1 compression function.
It exports two functions, binstring/1 and hexstring/1:
Code: 1> sha1:binstring("test").
<<169,74,143,229,204,177,155,166,28,76,8,115,211,145,233,135,152,47,187,211>>
2> sha1:hexstring("test").
"A94A8FE5CCB19BA61C4C0873D391E987982FBBD3"
The file contains two commented function that can hash files. I disabled them because they are very slow; I recommend this library be used to hash small strings only (passwords, for instance).
Original annoucement and future updates here.
This code is released under the LGPL license. Feedback and bug reports, patches would be much appreciated. |
| Description: |
|
 Download |
| Filename: |
sha1.erl |
| Filesize: |
3.1 KB |
| Downloaded: |
1536 Time(s) |
|
|
| Back to top |
|
| number |
Posted: Mon Jun 04, 2012 8:54 am |
|
|
|
User
Joined: 04 Jun 2012
Posts: 18
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
|