A hash function is any well-defined procedure or mathematical function that converts a large amount of data into a small datum, usually a single integer.

learn more… | top users | synonyms (1)

2
votes
1answer
21 views

How does Secure User authentication work?

When a user registers I take their password and secure it using hash and salt, which is then stored to mysql DB. So when a registered user tries to login how do I check if the password is valid? The ...
-3
votes
1answer
23 views

SHA2_256 not same in C# and SQL Server [closed]

static string sha256(string password) { SHA256Managed crypt = new SHA256Managed(); string hash = String.Empty; byte[] crypto = crypt.ComputeHash(Encoding.UTF8.GetBytes(password), 0, ...
0
votes
2answers
29 views

How do I force parsing an XML node as hash array?

This is my simplified myXML: <?xml version="1.0" encoding="utf-8"?> <ShipmentRequest> <Message> <MemberId>A00000001</MemberId> ...
-1
votes
1answer
37 views

Swap element in a unordered_set [closed]

I am using C++ unordered_set and I need to swap 2 elements of the list. I was thinking that maybe with the iterator it could be possible, but I don't know how. Is that possible?, or is it possible in ...
0
votes
1answer
25 views

php's hmac sha256 implementation mismatches java's one

i'm trying to reproduce in php the test cases mentioned in the official of totp computation reference (http://tools.ietf.org/html/rfc6238 Appendix A) which are written in java. The reference provides ...
0
votes
1answer
31 views

How to improve this password validation script [closed]

I have just written my new password validation script with php using Blowfish ($2y$07$randomsalt$) My intention was to validate users password which is stored in a mysql database, I have been reading ...
0
votes
2answers
34 views

Hash/Array of objects in Ruby

I'm pretty new to Ruby (I come from a C++ background) and I have an array/hash of objects by their name but I'm having no luck when trying to access their variables. This is my attempt: class Foo ...
0
votes
1answer
39 views

Michael Hrtl's Ruby on Rails Tutorial ep 5. Changing the hash from :media to media: doesn't work

only on tutorial 5 and I am stumped. This is similar to a previous post by user1420228, but the answer given didn't really resolve the problem. In Michael Hartl's application_helper.rb file: ...
1
vote
5answers
45 views

how to change hash keys in the lower case using ruby

Given hash with nested documents: myHash = { "MemberId"=>"ABC0001", "MemberName"=>"Alan", "details"=>[ {"LineNumber"=>"4.1", "Item"=>"A0001", "Description"=>"Apple"}, ...
4
votes
1answer
57 views

what is has_zero and find_zero in word_at_a_time.h used for

In linux kernel, inlucde/linux/word_at_a_time.h, there are two functions: static inline long find_zero(unsigned long mask) { long byte = 0; #ifdef CONFIG_64BIT if (mask >> 32) ...
0
votes
0answers
11 views

how to add an array of an array to valuess of hash

I have an array a1 and an AOA a2. @a1 = [1,2,3,4,5] and @a2 = [ [adf],[bcg],[yet],[gpd],[iop]].Now i want to have a hash where a1 are the keys and arrays of a2 as values. how do I do it ?
1
vote
2answers
48 views

PHP function crypt() in javasript

On the server side I create a password hash: public static function salt() { return '$1$' . StringUtil::random(6, array('encode' => StringUtil::ENCODE_BASE_64)); } public static function ...
0
votes
0answers
16 views

How Can I Convert Nested YAML to nested Arrays and OpenStructs in Ruby

How should I convert a series of nested hashes (nested to arbitrary depth) to a series of nested OpenStructs? I'm loading in a big YAML file and I'm not enjoying ...
0
votes
2answers
39 views

Hash::make('password') returning different results at every call

So,the title basically describes my problem. My Hash:make() is gone crazy. I've created a users table with a hashed password, but I can't get Laravel to accept my credentials and I think the problem ...
-1
votes
1answer
6 views

the bucket hashing if has same value,which will be take out?

The HashTable is stored in bucket hashing, when store more than two same hashing values, if take out,which will be take out?
-1
votes
2answers
29 views

Obtain a 16 character string from a 32 character string

How do i obtain a string that is 16 characters long, from a string that is 32 characters long. This 32 character string is a md5 hash. So how do i get the obtained 16 character string to be reasonably ...
0
votes
0answers
9 views

Convert Plain password into .NET Membership HASH password in T-SQL

We have a system that stores the username/password as plain text. I have been asked to covert this to Membership. I'd like a SQL function to convert the plain text password into .NET Membership ...
0
votes
4answers
43 views

Are EnumMaps in Java perfect hash maps?

If the list of hash keys for a hash function is known and immutable, it is possible to generate a perfect hash function. A Enum in Java is a list of known and immutable elements. Therefor it should be ...
-1
votes
1answer
44 views

Merging an array of array with an other array

I got this: first = [['lorem1','lorem1','lorem1',...],['lorem2','lorem2','lorem2',...],...] second = [value1,value2,value3, ...] I want to do something like that: my_array_of_hash = [{value 1 ...
0
votes
0answers
19 views

exploring relation between input and output

I have an input number and 2 possible outputs (numeric as wel). I would like to discover the function converting the input to output and I have 100 examples of input and 2 outputs. Is there a tool ...
0
votes
1answer
36 views

Password hashing and special characters? [closed]

Does any hashing algorithm exclude special characters? Just tried to register at HP and here is what i got, do they store passwords as plaintext?
0
votes
2answers
29 views

Sinatra: Undefined method bytesize for Hash

I'm creating a Sinatra app that takes an uploaded CSV file and puts its contents in a hash. When I reference this hash in my app.rb like so: hash = extract_values(path_to_filename) I keep getting ...
2
votes
4answers
77 views

Pair elements from two different Arrays into a Hash in Ruby

Let's say I have this two Arrays: a = [1, 2, 3, 4, 5] b = [6, 7, 8, 9, 10] What I want to get is a Hash as follows: c = { 1 => [1, 6], 2 => [2, 7], 3 => [3, 8], 4 => [4, 9], 5 => ...
1
vote
2answers
36 views

Perl: inserting array of arrays in into a array which is a value for a key

I have a need of inserting an array of arrays into an array.And this whole array is a value for a key in a hash.i meant hash should look like this: "one" [ [ 1, 2, [ [ 3, ...
2
votes
2answers
58 views

obfuscate values in python

Lets say I have the following strings a = "123456" b = "#$%[{\" c = "ABCDEFG" I need to convert these three string into a "d" string with the following properties The "d" string is obfuscate (it ...
0
votes
2answers
69 views

What built-in Java hash function to use for password

I'm working on a school project making a java program including a login/subscribe form. Because it's for school I'm not supposed to include any third-party library like jBcrypt or other strong ...
0
votes
1answer
23 views

Hash encrypting password when inserting into database

I'm doing an application for school and I'm in need of help in encrypting passwords when inserting them into my users database.I'm programming in c# programming language and i'm using MS server 2008 ...
0
votes
0answers
7 views

Can't get the viewWidth after the first layout

Working on adding a Facebook login to an app and I can run it on a Nexus S with 4.1.2 installed on it. The authentication and hashing works perfectly for me on that phone and the app proceeds as ...
-8
votes
0answers
38 views

need help on hashing function overflow [closed]

I have problems with this code: (sorry couldn't post it here) http://pastebin.com/9YX5phiH It says "hash table overflow" when there are still empty slots in hash table. Thank you.
0
votes
1answer
22 views

tiger192,4 php hash generating differente values in different php versions

Does anyone else had that issue? In a php 5.4.9-4 environment when I call echo hash('tiger192,4','test'); I receive 14b5375c7b29cbf5f9e70a199a40e59dd4d5f1df218b5249 as response. Now, in a php ...

1 2 3 4 5 237
15 30 50 per page