jsSHA Hash Test Page
		Hash Tests
		
			For the hashes without HMAC, all of the FIPS 180-2 test cases will be executed and the results noted in their respective tables.
		
		
			Note that the "Long" test involves hashing a 1,000,000 character string and can take quite a while depending on the browser and machine.
		
		
			SHA-1 Hash Tests
			
				
					 | 
					Short | 
					Medium | 
					Long | 
				
				
					 | 
					Text-In | 
					Hex-In | 
					B64-In | 
					Text-In | 
					Hex-In | 
					B64-In | 
					Text-In | 
					Hex-In | 
					B64-In | 
				
			
			
				
					| Hex-Out | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
				
				
					| B64-Out | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
				
			
		
		
			SHA-224 Hash Tests
			
				
					 | 
					Short | 
					Medium | 
					Long | 
				
				
					 | 
					Text-In | 
					Hex-In | 
					B64-In | 
					Text-In | 
					Hex-In | 
					B64-In | 
					Text-In | 
					Hex-In | 
					B64-In | 
				
			
			
				
					| Hex-Out | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
				
				
					| B64-Out | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
				
			
		
		
			SHA-256 Hash Tests
			
				
					 | 
					Short | 
					Medium | 
					Long | 
				
				
					 | 
					Text-In | 
					Hex-In | 
					B64-In | 
					Text-In | 
					Hex-In | 
					B64-In | 
					Text-In | 
					Hex-In | 
					B64-In | 
				
			
			
				
					| Hex-Out | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
				
				
					| B64-Out | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
				
			
		
		
			SHA-384 Hash Tests
			
				
					 | 
					Short | 
					Medium | 
					Long | 
				
				
					 | 
					Text-In | 
					Hex-In | 
					B64-In | 
					Text-In | 
					Hex-In | 
					B64-In | 
					Text-In | 
					Hex-In | 
					B64-In | 
				
			
			
				
					| Hex-Out | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
				
				
					| B64-Out | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
				
			
		
		
			SHA-512 Hash Tests
			
				
					 | 
					Short | 
					Medium | 
					Long | 
				
				
					 | 
					Text-In | 
					Hex-In | 
					B64-In | 
					Text-In | 
					Hex-In | 
					B64-In | 
					Text-In | 
					Hex-In | 
					B64-In | 
				
			
			
				
					| Hex-Out | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
				
				
					| B64-Out | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
				
			
		
		Multiple Round Tests
		
			Values for the multiple round tests can be generated using the included getHashRounds.py
		
		
			Multiple Hash Rounds Tests
			
				
					 | 
				
			
			
				
					| 5 Rounds | 
				
				
					| 10 Rounds | 
				
			
		
		HMAC Tests
		
			For HMACs, all non-truncated test cases from the examples referenced by the newest version of FIPS 198, FIPS 198-1, will be executed and the results noted in their respective tables.
		
		
			SHA-1 HMAC Tests
			
				
					 | 
					Short | 
					Medium | 
					Long | 
				
				
					 | 
					Text-Text | 
					Text-Hex | 
					Text-B64 | 
					Text-Text | 
					Text-Hex | 
					Text-B64 | 
					Text-Text | 
					Text-Hex | 
					Text-B64 | 
				
			
			
				
					| Hex-Out | 
					KeyHex | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
				
				
					| Key-B64 | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
				
				
					| B64-Out | 
					KeyHex | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
				
				
					| Key-B64 | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
				
			
		
		
			SHA-224 HMAC Tests
			
				
					 | 
					Short | 
					Medium | 
					Long | 
				
				
					 | 
					Text-Text | 
					Text-Hex | 
					Text-B64 | 
					Text-Text | 
					Text-Hex | 
					Text-B64 | 
					Text-Text | 
					Text-Hex | 
					Text-B64 | 
				
			
			
				
					| Hex-Out | 
					KeyHex | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
				
				
					| Key-B64 | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
				
				
					| B64-Out | 
					KeyHex | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
				
				
					| Key-B64 | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
				
			
		
		
			SHA-256 HMAC Tests
			
				
					 | 
					Short | 
					Medium | 
					Long | 
				
				
					 | 
					Text-Text | 
					Text-Hex | 
					Text-B64 | 
					Text-Text | 
					Text-Hex | 
					Text-B64 | 
					Text-Text | 
					Text-Hex | 
					Text-B64 | 
				
			
			
				
					| Hex-Out | 
					Key-Hex | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
				
				
					| Key-B64 | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
				
				
					| B64-Out | 
					Key-Hex | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
				
				
					| Key-B64 | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
				
			
		
		
			SHA-384 HMAC Tests
			
				
					 | 
					Short | 
					Medium | 
					Long | 
				
				
					 | 
					Text-Text | 
					Text-Hex | 
					Text-B64 | 
					Text-Text | 
					Text-Hex | 
					Text-B64 | 
					Text-Text | 
					Text-Hex | 
					Text-B64 | 
				
			
			
				
					| Hex-Out | 
					KeyHex | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
				
				
					| Key-B64 | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
				
				
					| B64-Out | 
					KeyHex | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
				
				
					| Key-B64 | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
				
			
		
		
			SHA-512 HMAC Tests
			
				
					 | 
					Short | 
					Medium | 
					Long | 
				
				
					 | 
					Text-Text | 
					Text-Hex | 
					Text-B64 | 
					Text-Text | 
					Text-Hex | 
					Text-B64 | 
					Text-Text | 
					Text-Hex | 
					Text-B64 | 
				
			
			
				
					| Hex-Out | 
					KeyHex | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
				
				
					| Key-B64 | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
				
				
					| B64-Out | 
					KeyHex | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
				
				
					| Key-B64 | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? | 
					? |