src/sha_dev.js
function packed2bytes(packed, outputLength, bigEndianMod)
	{
		var str = "", length = outputLength / 8, i, srcByte, shiftModifier;

		shiftModifier = (bigEndianMod === -1) ? 3 : 0;

		for (i = 0; i < length; i += 1)
		{
			srcByte = (packed[i >>> 2] >>> (8 * (shiftModifier + bigEndianMod * (i % 4)))) & 0xFF;
			str += String.fromCharCode(srcByte);
		}

		return str;
	}
function packed2bytes(packed, outputLength, bigEndianMod)
	{
		var str = "", length = outputLength / 8, i, srcByte, shiftModifier;

		shiftModifier = (bigEndianMod === -1) ? 3 : 0;

		for (i = 0; i < length; i += 1)
		{
			srcByte = (packed[i >>> 2] >>> (8 * (shiftModifier + bigEndianMod * (i % 4)))) & 0xFF;
			str += String.fromCharCode(srcByte);
		}

		return str;
	}
function packed2bytes ( packed , outputLength , bigEndianMod ) { var str = "" , length = outputLength / 8 , i , srcByte , shiftModifier ; shiftModifier = ( bigEndianMod === - 1 ) ? 3 : 0 ; for ( i = 0 ; i < length ; i += 1 ) { srcByte = ( packed [ i >>> 2 ] >>> ( 8 * ( shiftModifier + bigEndianMod * ( i % 4 ) ) ) ) & 0xFF ; str += String . fromCharCode ( srcByte ) ; } return str ; }
Convert an array of big-endian words to raw bytes string

@private
@param {Array<number>} packed Array of integers to be converted to
a raw bytes string representation
@param {number} outputLength Length of output in bits
@param {number} bigEndianMod Modifier for whether hash function is
big or small endian
@return {string} Raw bytes representation of the parameter in string
form
Convert an array of big - endian words to raw bytes string