HMAC SHA1 ColdFusion

后端 未结 3 1942
孤独总比滥情好
孤独总比滥情好 2020-12-06 07:51

Please help! I have been pulling out my hair over this one. :)

I have a site that I need to HMAC SHA1 for authentication. It currently works with another language

3条回答
  •  孤街浪徒
    2020-12-06 08:35

    Steve - Thanks for your response. I actually was using the hmacEncrypt function already. I did figure out my issue though. I was passing in a HEX key instead of a string. It accepted the key because technically it was a string. To get it back to a string I used another function along with the one above. The one below changes the HEX into a string. I didn't write the function below nor do I remember where it came from to get the author credit, but it worked great.

    
        
        
        
        
        
        
        
        
        
        
            
            
        
        
         
        
     
    

提交回复
热议问题