列表 第页
在目标C我一直在使用下面的code哈希的字符串:In Objective C I've been using the following code to hash a string:-(NSString *) sha1:(NSString*)stringToHash { const char *cStr =...阅读全文
当计算在一个大文件中的单个MD5校验,什么技术一般用于各种的MD5值结合成一个单一的值?你只需添加它们放在一起?我没有在任何特定的语言,库或API,它会做到这一点真的很感兴趣;而我在它背后的技术,只是有兴趣。有人可以解释它是如何做?鉴于伪code以下算法:MD5Digest X为每个文件F段MD5Digest Y =...阅读全文
在Java中,哈希code 为字符串对象被计算为In Java, the hash code for a String object is computed asS [0] * 31 ^(N-1)+ S [1] * 31 ^(N-2)+ ... S [N-1] 使用 INT 算术,其中 S [I] 是我 日字符串...阅读全文
我正在考虑使用散列方法来创建静态URL内容由在Asp.Net MVC Ajax调用管理。概念我工作的证明个人资料页 /用户/配置文件,其中一个可以浏览和编辑不同的部分。你总是可以问以下网址 /用户/ profile文件#密码来直接访问你的个人资料页,在更改密码栏目I'm considering using the h...阅读全文
我正在开发一个使用Facebook的身份验证的Android应用程序。在调试模式下,我使用了code生成的调试密钥散列:I'm developing an Android application that uses Facebook Authentication. In debug mode, i use the...阅读全文
我正在使用我的密码生成盐值和哈希值,I am generating salt and hash values from my passwords by using,string salt = CreateSalt(TxtPassword.Text.Length);string hash = CreatePassw...阅读全文
我有关于登录与Facebook acount在我的应用程序的问题。我念到Facebook的文档。我做了所有步骤,因为Facebook的文档。 I have problem about login with facebook acount in my application. I read to Facebook Do...阅读全文
在此MSDN文章http://msdn.microsoft.com/en-us/library/ms132123.aspx 论述类Equalitycomparer并具有example.In这个例子中大约有此类比较箱 - In this MSDN article http://msdn.microsoft.com...阅读全文
基本上我想要写函数,计算SHA1哈希值。Basically I want to write function that computes sha1 hash.到目前为止,我已经试过如下:So far I have tried is as follows.C#.NET byte[] p2 = System.Te...阅读全文
由于集合像 System.Collections.Generic.HashSet<> 接受空作为一组成员,有人可能要问什么空的哈希值code应该的。它看起来像框架使用 0 ://可空结构类型诠释? I = NULL;i.GetHash code(); //给出0EqualityComparer<...阅读全文
我有使用散列函数创建的字节数组。我想这个数组转换为字符串。到目前为止好,它会给我的十六进制字符串。I've got a byte array that was created using a hash function. I would like to convert this array into a string...阅读全文
我创建一个MetroStyle应用程序,我想生成一个MD5 $ C $下我的字符串。到目前为止,我已经用这样的:I'm creating a MetroStyle app and I want to generate a MD5 code for my string. So far I've used this:pu...阅读全文
我们碰到了,痛彻哈希表中的神奇十进制数。我煮它归结为以下几个最基本的情况:We ran into a magic decimal number that broke our hashtable. I boiled it down to the following minimal case:decimal d0 =...阅读全文
我是微弱的常规前pressions,我需要重定向任何 FileName.htm 或 FileName.html 页请求 ./#文件名下,只有当请求从外部链路传入。这些文件都将驻留在根目录下。 i'm weak in regular expressions, i need to redirect any FileNam...阅读全文
我目前使用MD5哈希值,但我想找到的东西,将创建一个较短的哈希只使用[AZ] [AZ] [0-9]。它仅需要是大约5-10个字符长。 I'm currently using MD5 hashes but I would like to find something that will create a shorter...阅读全文
我想创建一个快速哈希code函数的复数类(A + B)在C#。I am trying to create a quick hashcode function for a complex number class (a + b) in C#.我见过多次了 a.GetHash code()^ b.GetHash cod...阅读全文