title: sha1 hash from as3crypto differs from the one made with PHP
body: <p>Make SHA1 hash from string '12345' with as3crypto in as3 the same way how it is done in there example:</p>
  
  <pre><code>var sha1:SHA1 = new SHA1;
  var src:ByteArray = Hex.toArray("12345");
  var digest:ByteArray = sha1.hash(src);
  trace('SHA:' + Hex.fromArray(digest));
  </code></pre>
  
  <p>result : ec60c0fd70d82a7785f6c9a02dbe16f2e40b1344</p>
  
  <p>Make SHA1 from the same string in PHP:</p>
  
  <pre><code>print "SHA:".sha1("12345");
  </code></pre>
  
  <p>result : 8cb2237d0679ca88db6464eac60da96345513964</p>
  
  <p>If I try other tools to obtain hash I get the second result, so it looks like the result from PHP is correct.</p>
  
  <p>Question: <strong>How can I get the same hash with as3crypto?</strong></p>
  
  <p>BTW: when testing I found that another way with as3crypto gives me another (wrong?) result:</p>
  
  <pre><code>var src:ByteArray = new ByteArray();
  src.writeUTF("12345");
  var digest:ByteArray = sha1.hash(src);
  trace('SHA:' + Hex.fromArray(digest));
  </code></pre>
  
  <p>result : b98cfbc53daec4029895585ab198f7403d0d0506</p>