如何解碼md5,crc32和sha1,下面是xml文件,然後是我用於獲取數據的代碼。sha1,crc32和md5如何讀取這些數據?
<files>
<file name="AtTheInn-Germany-Morrow78Collection.mp3" source="original">
<format>VBR MP3</format>
<title>At the Inn - Germany - Morrow 78 collection</title>
<md5>056bbd63961450d9684ca54b35caed45</md5>
<creator>Germany</creator>
<album>Morrow 78 collection</album>
<mtime>1256879264</mtime>
<size>2165481</size>
<crc32>22bab6a</crc32>
<sha1>796fccc9b9dd9732612ee626c615050fd5d7483c</sha1>
<length>179.59</length>
</file>
這是我使用獲得冠軍和專輯名稱如何才能讓SHA1和MD5的意識,任何方向任何幫助將有用的代碼,感謝
<?php
$search = $_GET['sku'];
$catalogfile = $_GET['file'];
$directory = "feeds/";
$xmlfile = $directory . $catalogfile;
$xml = simplexml_load_file($xmlfile);
list($product) = $xml->xpath("//file[crc32 = '$search']");
echo "<head>";
echo "<title>$product->title</title>";
你知道[哈希](http://en.wikipedia.org/wiki/Hash_function)嗎? – sectus 2013-04-06 05:47:21
不,我不知道,我現在正在閱讀它,雖然 – 2013-04-06 05:59:33