gpt4 book ai didi

c# - 在 SQL 数据库中存储加密的信用卡号

转载 作者:行者123 更新时间:2023-11-30 20:01:48 25 4
gpt4 key购买 nike

我想知道在 C#(.net 框架)的 SQL 数据库中存储加密信用卡号的最佳方法是什么。我应该通过使用 String/SecureString/Byte Array 和某种对称加密 来手动完成吗?

我听说有一个替代方案(可能是更简单的选择),服务提供商(您与之进行交易)会给您一个 key ,可以用于检索交易信息。我不知道如何采用这种方法,但这是更好的选择吗?我想要最安全和最安全的选择。我也想成为 PCI 合规性

最佳答案

如果您要将信用卡号存储在您控制的数据库中,请阅读 PCI DSS:

http://en.wikipedia.org/wiki/Payment_Card_Industry_Data_Security_Standard

为什么要遵守:

https://www.pcisecuritystandards.org/security_standards/why_comply.php

然后阅读如何说服那些要求您将信用卡存放在家里的人,因为您正在给自己带来伤害:

https://security.stackexchange.com/questions/18677/how-to-convince-coworkers-to-not-store-credit-card-numbers-ourselves

关于c# - 在 SQL 数据库中存储加密的信用卡号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18065367/

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