RSA.import_key(b64encode(data))
这是Python代码。我想将此代码更改为nodejs。请帮帮我。
我建议阅读NodeJS中加密模块的文档。许多方法直接接受私钥作为缓冲区,同时也有例如加密。createPrivateKey你可以使用。由于安全性是一个重要的主题,因此您最好通读本模块并仔细选择适合您需求的内容。
RSA.import_key(b64encode(data))
这是Python代码。我想将此代码更改为nodejs。请帮帮我。
我建议阅读NodeJS中加密模块的文档。许多方法直接接受私钥作为缓冲区,同时也有例如加密。createPrivateKey你可以使用。由于安全性是一个重要的主题,因此您最好通读本模块并仔细选择适合您需求的内容。
javascript python java c# php android html jquery c++ css ios sql mysql arrays asp.net json python-3.x ruby-on-rails .net sql-server django objective-c excel regex ruby linux ajax iphone xml vba spring asp.net-mvc database wordpress string postgresql wpf windows xcode bash git oracle list vb.net multithreading eclipse algorithm macos powershell visual-studio image forms numpy scala function api selenium