gpt4 book ai didi

c# - 使用 x509 证书和加密的数字签名

转载 作者:行者123 更新时间:2023-12-01 15:25:22 27 4
gpt4 key购买 nike

我想签署将在服务器上验证的 xml 文档。我不知道如何使用 .cer 和 .pfx 文件等数字证书对 xml 文件进行签名和加密。我用谷歌搜索并找到了各种例子,但无法理解标准方式,即

What are the step by step process to sign and encrypt the xml file

这里有一个问题是,

i want to sign and encrypt the file on client(.net c# code) in such a way that it could be validated and decrypt at server(java code)

最佳答案

如果您想在 C# 和 Java 中执行此操作,您可能需要看看 BouncyCaSTLe。这是一个流行的加密库,它支持 C# 和 Java。

资源:http://www.bouncycastle.org/

关于c# - 使用 x509 证书和加密的数字签名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10244548/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com