use binary string instead of Uint8Array for forge
This commit is contained in:
		
							父節點
							
								
									ef6631ec87
								
							
						
					
					
						當前提交
						4161310ed2
					
				@ -56,7 +56,7 @@ exports.sha1Hmac = function (key, bytes) {
 | 
			
		||||
    var forge = window.forge;
 | 
			
		||||
    var hmac = forge.hmac.create();
 | 
			
		||||
    var digest;
 | 
			
		||||
    hmac.start('sha1', key);
 | 
			
		||||
    hmac.start('sha1', Unibabel.bufferToBinaryString(key));
 | 
			
		||||
    hmac.update(Unibabel.bufferToBinaryString(bytes));
 | 
			
		||||
    digest = hmac.digest().toHex();
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		載入中…
	
	
			
			x
			
			
		
	
		新增問題並參考
	
	Block a user