angularjs-crypto icon indicating copy to clipboard operation
angularjs-crypto copied to clipboard

ReferenceError: CryptoJS is not defined

Open jsandeepm opened this issue 5 years ago • 2 comments

ReferenceError: CryptoJS is not defined

What might be the issue?

I have included below lines:

<script src="bower_components/angularjs-crypto/public/js/lib/plugins/CryptoJSCipher.js"></script>
<!-- cryptojs aes files -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/components/aes.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/components/mode-ecb.js"></script>

image

jsandeepm avatar Apr 23 '20 10:04 jsandeepm

I'm also facing this same issue with CryptoJSCipher. Can you please tell if you found any solution?

imhkgupta007 avatar Jun 01 '21 04:06 imhkgupta007

Am facing same issue also cryptojs is not defined error This my code function encryptPass(){ let passcryp = CryptoJS.AES.encrypt(password.value, password.value);

return passcryp.toString(); }

BestieeMu avatar Jun 27 '22 09:06 BestieeMu