Javascript 谷歌代码中现在缺少 Crypto-JS
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/37200587/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Crypto-JS is now missing on google codes
提问by CENT1PEDE
I was using the online version of Crypto-Js
hosted on google codes
see below:
我使用的是Crypto-Js
托管的在线版本,google codes
如下所示:
<script src="https://crypto-js.googlecode.com/svn/tags/3.0.2/build/rollups/hmac-sha256.js"></script>
<script src="https://crypto-js.googlecode.com/svn/tags/3.0.2/build/components/enc-base64-min.js"></script>
Then yesterday my website suddenly crashed, and I find out that the host doesn't exist anymore. Am I the only one using this link? Did they move it to a different link?
然后昨天我的网站突然崩溃了,我发现主机已经不存在了。我是唯一一个使用此链接的人吗?他们是否将其移至不同的链接?
采纳答案by CENT1PEDE
There are few ways to get the CryptoJs
codes.
获取CryptoJs
代码的方法很少。
- Get from the google code archive : Crypto-Js
- CDN : CryptoJs CDN
- 从谷歌代码存档中获取:Crypto-Js
- CDN : CryptoJs CDN
Note
笔记
This answer might get outdated through time and I cant really track it and this solution might not work in the future, if so, just comment here so I can update it :)
这个答案可能会随着时间的推移而过时,我无法真正跟踪它,这个解决方案将来可能不起作用,如果是这样,请在此处发表评论,以便我可以更新它:)
回答by Aditya Agarwal
You can use cloudfare CDN, they still have the files. Below are the links
您可以使用cloudfare CDN,他们仍然拥有文件。以下是链接
https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/components/core-min.js
https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/components/core-min.js
https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/rollups/hmac-sha512.js
https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/rollups/hmac-sha512.js