我正在学习Node js,我不知道如何使用Cryptography库(SHA-1?)。如何在Node js中使用SHA-1。这里是伪代码: // Use a Base64-encoder that don't introduce line-breaks,
// or trim the output signature afterwards.
string signature = Base64.
我想要做的是使用AES加密字符串,使用RSA加密AES密钥getEncoded()的值,然后解密该AES getEncoded()值,以便获得我的原始串。公钥从用户证书中加载,私钥从文件中加载。代码如下。 public class Main {
public static void main(String[] args) throws Exception {
String myString