小编use*_*740的帖子

为什么我有来自 repo spring 的 HTTP 403?

我有一个 jhipster 项目,几个月以来它用 gitlab 部署在 heroku 上

从昨天开始,我无法部署新版本,因为我有这个错误

FAILURE: Build failed with an exception.
32 * What went wrong:
33 A problem occurred configuring root project 'yvidya'.
34 > Could not resolve all artifacts for configuration ':classpath'.
35    > Could not resolve io.spring.gradle:propdeps-plugin:0.0.10.RELEASE.
36      Required by:
37          project :
38       > Could not resolve io.spring.gradle:propdeps-plugin:0.0.10.RELEASE.
39          > Could not get resource 'http://repo.spring.io/plugins-    release/io/spring/gradle/propdeps-plugin/0.0.10.RELEASE/propdeps-plugin-0.0.10.RELEASE.pom'.
40             > Could not GET 'http://repo.spring.io/plugins-release/io/spring/gradle/propdeps-plugin/0.0.10.RELEASE/propdeps-plugin-0.0.10.RELEASE.pom'. Received status code 403 from server:     Forbidden
Run Code Online (Sandbox Code Playgroud)

有谁知道为什么会出现这个错误?以及如何解决?

java spring gitlab jhipster

25
推荐指数
2
解决办法
6183
查看次数

密码/ 3DES/CFB/Java和PHP

我有一个PHP服务器,它使用CFB模式解密3DES中的数据

我用PHP加密:

$montant = "500";
$message_crypte = mcrypt_encrypt(MCRYPT_3DES, "N4y1FRDRJ7wn7eJNnWaahCIS", $montant, ,CRYPT_MODE_CFB, "NCNPJDcR");
$montant = base64_encode($message_crypte);
Run Code Online (Sandbox Code Playgroud)

PHP中的这个脚本可以和其他系统一起使用.

我想用Java加密:

public class CryptData {
    private KeySpec keySpec;
    private SecretKey key;
    private IvParameterSpec iv;

    public CryptData(String keyString, String ivString) {
        try {
            final MessageDigest md = MessageDigest.getInstance("md5");

            final byte[] digestOfPassword = md.digest(Base64
                    .decodeBase64(keyString.getBytes("ISO-8859-1")));

            final byte[] keyBytes = Arrays.copyOf(digestOfPassword, 24);
            for (int j = 0, k = 16; j < 8;) {
                keyBytes[k++] = keyBytes[j++];
            }

            //keySpec = new DESedeKeySpec(keyBytes);
            keySpec = new DESedeKeySpec(keyString.getBytes());

            key …
Run Code Online (Sandbox Code Playgroud)

java encryption 3des

6
推荐指数
1
解决办法
2222
查看次数

标签 统计

java ×2

3des ×1

encryption ×1

gitlab ×1

jhipster ×1

spring ×1