sha1 Hash!

What features would you like to see in future versions of getID3() ?
Post Reply
Guest

sha1 Hash!

Post by Guest » Wed Nov 26, 2003 12:52 am

With ID3() you can automatically hash an mp3 file (the whole file) with md5 ... Would be cool if it could give back the sha1 hash for the whole file :)

James Heinrich
getID3() v1 developer
Posts: 1475
Joined: Fri May 04, 2001 4:00 pm
Are you a spambot?: no
Location: Northern Ontario, Canada
Contact:

Post by James Heinrich » Wed Nov 26, 2003 1:12 am

That's something that looks doable, I'll look into adding that option in v1.7.0-final.

Guest

Post by Guest » Wed Nov 26, 2003 5:44 pm

That would be great.

Allan Hansen
getID3() v2 developer
Posts: 445
Joined: Sun May 04, 2003 2:22 pm
Location: Holmegaard, Denmark

Re: sha1 Hash!

Post by Allan Hansen » Wed Nov 26, 2003 10:10 pm

Anonymous wrote:With ID3() you can automatically hash an mp3 file (the whole file) with md5 ... Would be cool if it could give back the sha1 hash for the whole file :)
As of 1.7.0b1, support for whole file md5sum is removed. Use md5_file() instead. If you use an old version of PHP under linux, use getid3_lib::md5_file() instead.

Likewise, the sha1 hash for the whole file can be calculated with sha1_file().

But if you are interested in sha1 hashes for the data part, then we could easily implement it.

Allan Hansen
getID3() v2 developer
Posts: 445
Joined: Sun May 04, 2003 2:22 pm
Location: Holmegaard, Denmark

Post by Allan Hansen » Fri Nov 28, 2003 7:53 am

sha1 hash for data part has implemented in beta5.

Post Reply