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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-23 20:01:49  来源:igfitidea点击:

Crypto-JS is now missing on google codes

javascriptgoogle-codecryptojs

提问by CENT1PEDE

I was using the online version of Crypto-Jshosted on google codessee 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?

然后昨天我的网站突然崩溃了,我发现主机已经不存在了。我是唯一一个使用此链接的人吗?他们是否将其移至不同的链接?

crypto-js

加密js

采纳答案by CENT1PEDE

There are few ways to get the CryptoJscodes.

获取CryptoJs代码的方法很少。

  1. Get from the google code archive : Crypto-Js
  2. CDN : CryptoJs CDN
  1. 从谷歌代码存档中获取:Crypto-Js
  2. 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