Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
只需在 .Net 中,我通过 DES 对称加密算法和 .NET 中的特定密钥对 Id 进行加密。我想知道我的 Java 合作伙伴是否可以仅通过知道算法名称和密钥来解密?
谢谢
如果实现是正确的,那么 - 是的。
是的,他可以,这就是算法的重点。有一些加密标准需要额外的数据,比如 RSA 中的填充,但这不适用于 DES
如果您使用相同的算法和相同的密钥,您将获得相同的输出。您使用的平台无关紧要。