Skip to content
Permalink
Browse files
make some extra vars constant
  • Loading branch information
mherkender committed Apr 2, 2012
1 parent 0afe394 commit ec203c5bff1afecb3f5888dc70a9634f97b7ee06
Showing 1 changed file with 2 additions and 2 deletions.
@@ -2,10 +2,10 @@ package {
import flash.utils.ByteArray;

public function sha1(input:String):String {
var byteInput:ByteArray = staticByteArray;
const byteInput:ByteArray = staticByteArray;
byteInput.writeUTFBytes(input);

var originalLength:uint = byteInput.length;
const originalLength:uint = byteInput.length;

// sha-1 requires a single bit be appended to the input
byteInput.writeByte(0x80);

0 comments on commit ec203c5

Please sign in to comment.