C#中跨平台散列函数的实现 [英] An implementation of a cross platform hash function in C#

查看:49
本文介绍了C#中跨平台散列函数的实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Heya聪明的朋友,



我注意到.NET哈希函数可以在不同的机器上产生不同的值。

我需要哈希函数(对于字符串)将产生相同的值,无论它是什么平台,是否赢得xp,vista,7,8,服务器2k3,2k8等

AND无论是32还是32 bit或64 bit(据我的理解在哈希实现中有很大的不同)。



任何人?

Heya smart friends,

I noticed that .NET hash function can produce different values on different machines.
I need a hash function (for strings) that will produce the same value, no matter what platform it is on, whether it's win xp, vista, 7, 8, server 2k3, 2k8 etc
AND no matter if it's 32 bit or 64 bit (which to my understanding makes a big difference in the hash implementation).

Anyone?

推荐答案

请查看良好的跨平台散列函数算法 [ ^ ]。


迟到但仍然...



我最终使用的是内置MS SQL Server的散列机制

我无论如何我已经存储了数据,所以我想出来了,嘿,它是中心的,跨平台的,实际上它是你想要的任何东西,因为我只在该项目中使用一个SQL Server。



干杯
Late but still...

What I've used eventually is the built in hashing mechanism of MS SQL Server,
I've had it storing the data anyway, so I figures out, hey, it is central, cross platform, actually its cross whatever you want since I only use one SQL Server in that project.

Cheers


这篇关于C#中跨平台散列函数的实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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