如何在C#语言中实现用于实现银行网关的SHA1哈希码。 [英] How can dycrypt SHA1 hash code for implement banking gateways in C# language.

查看:76
本文介绍了如何在C#语言中实现用于实现银行网关的SHA1哈希码。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我在c#中为银行交易创建支付网关。所以我想使用加密和dycryption。但我正在努力,但没有得到谷歌的复杂反应。那么你可以分享 相关的东西SHA1 HASH代码



我尝试了什么:



我正在使用加密技术。

Hi I creating payment gateways for banking transactions in c#. So i want to use Encryption and dycryption . But I am trying but not getting sophisticated response on google. So can you share related thing of SHA1 HASH Code

What I have tried:

I am Using encryption technique.

推荐答案

SHA1和任何其他哈希码,MD5 for例如,只有一种方式,即



text - - - SHA1 / MD5 / Whatever Hashing - - - >哈希码



这个过程没有逆转。你可以这样做



a)用户密码 - - - SHA1哈希 - - - >哈希码 - - - >存储在DB中

b)用户测试密码 - - - SHA1哈希 - - - >哈希码 - - - >与DB存储代码比较(a)



并检查哈希密码是否相等



银行交易,我强烈建议您与任何可能在您的网关交易接收端的合作伙伴银行进行交谈,因为银行都会对自己的安全性有所要求 - 这个话题太广泛了,不在这里,不是就像我说在这种模式下使用AES一样简单



' - - - '应该是行btw,降价将它们转换为'strikethrough'我不记得如何说'不要降价这个'
SHA1 and Any other hash code, MD5 for example, is one way only, ie

text - - - SHA1/MD5/Whatever Hashing - - -> Hash Code

There is NO reversal for this process. You can do this

a) User Password - - - SHA1 Hash - - -> Hash Code - - -> Store In DB
b) User Test Password - - - SHA1 Hash - - -> Hash Code - - -> Compare to DB Stored Code from (a)

and check if the hashed password is equal

For Banking Transactions, I strongly recommend that you talk with any partner bank who might be on the receiving end of transactions from your gateway, because the banks will all have requirements around security of their own - the topic is too broad to cover here, its not as easy as me saying 'use AES in this mode' for example

the '- - -' are supposed to be lines btw, markdown converts them to 'strikethrough' and I cant remember offhand how to say 'dont markdown this'


这篇关于如何在C#语言中实现用于实现银行网关的SHA1哈希码。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆