This seems like a simple issue to resolve....
Although my CryptoJS object is present, it appears to be lacking a SHA1 method.
What steps should I take to rectify this? Despite various examples available, my specific case remains unresolved...
On a positive note, the .enc.Hex.stringify method does indeed exist...
I would greatly appreciate any assistance on this matter.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
link href="blaw blaw blaw" rel="stylesheet" >
</head>
<body>
content blaw blaw blaw
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/core.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/enc-hex.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/hmac-sha1.js"></script>
<script type="text/javascript"gt;;
var StringToSign = "blaw blaw blaw";
var hash = CryptoJS.SHA1(StringToSign); // <--- No SHA1 method!
var result = CryptoJS.enc.Hex.stringify(hash);
$(".content .z-value").html(result);
</script>;
;
;
Your help is much appreciated.
;