解密SQL加密字符串 [英] Decryption of an SQL encrypted string
问题描述
不要将信用卡信息存储在数据库中。这是一个麻烦的秘方。这样做会使您成为黑客非常有吸引力的目标,如果他们成功地获取黑客,可能会结束您的业务,并可能破坏您的生活以及信用卡号码被盗的人员的生活。
另外可能存储这样的信息是非法的,但取决于您所在国家的法律。请确保检查指南。
如果仍然要继续这样做,并且您想要存储这样的信息,那么遵守ENCRYPT加密规则从不DECRYPT。它像MD5(我根本不知道你应该只使用像md5这样的算法存储信用卡信息),在那里你没有解密算法,但只能加密数据。您可以通过首先使用相同的算法加密字符串,然后将其与数据库中的加密字符串进行比较,来检查输入的信息与数据库中加密数据的匹配。选择一个好的算法和一个好的安全的服务器。
确保选择一个安全的加密算法,并且还没有被破坏。
I have an encrypted string/Number in the database(which is done by SQL server encryption and looks like "䚶ઙᷤ阹熂" ),now i need to decrypt this through c# code.How can i achieve this? Can anyone help me on this?
Do not store credit card information in a database. It's a recipe for trouble. Doing so will make you a very attractive target for hackers and, if they are successful in retrieving them, end your business and potentially ruin your life as well as the lives of those whose credit card numbers are stolen.
Also It is possible that storing such an information is illegal but depends upon the laws of you country. Please do check the guidelines.
If still you want to go ahead and do so and you want to store such an information then the just keep to the rule of ENCRYPT ENCRYPT ENCRYPT and never DECRYPT. Its like MD5 (i am not at all that you should just use algorithm like md5 for storing the credit card information) where you don't have an algorithm to decrypt but you can only encrypt the data. You can check the information entered matches the encryted data in the database by first encrypting the string with the same algorithm and then comparing it with the encrypted string in the database. Choose a good algorithm and a good and a secure server.
Be sure to choose an encryption algorithm that is secure and have not been broken yet.
这篇关于解密SQL加密字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!