小编Ale*_*eux的帖子

尝试使用密码安全地解密私钥

我尝试使用加密nodejs模块。但我没能成功地让它发挥作用。

import * as crypto from 'crypto';
import { RsaPrivateKey } from 'crypto';

const privateKey = crypto.privateDecrypt(rsaPrivateKey, Buffer.from('')).toString();

Run Code Online (Sandbox Code Playgroud)

我有一个密码。我需要执行此操作,以便可以将我的证书导入 AWS 中。有人有主意吗?

我知道我们可以在 golang 中做到这一点

if x509.IsEncryptedPEMBlock(block) {
  der, wrongPass := x509.DecryptPEMBlock(block, []byte(o.passphrase))
Run Code Online (Sandbox Code Playgroud)
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: AES-256-CBC,XXXXXXXXX
Run Code Online (Sandbox Code Playgroud)

encryption node.js

3
推荐指数
1
解决办法
1883
查看次数

patternin MM/yy的DateTimeFormatter

我这样做时遇到了这个错误

LocalDate.parse(expirationDate,DateTimeFormatter.ofPattern("MM/yy");

java.time.format.DateTimeParseException: Text '09/14' could not be parsed at index 5
Run Code Online (Sandbox Code Playgroud)

我和建筑师一起测试但是我不知道怎么做?

有人有一些线索吗?

谢谢!

java java-8

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

标签 统计

encryption ×1

java ×1

java-8 ×1

node.js ×1