As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [hashcode]

Hashcode is a result of applying a hash function to data, usually an integer.

10 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
0 answers
584 views

Fowler–Noll–Vo hash function in Lua

I recently coded this FNV-1a hash function in Lua. Are there any apparent performance improvements that could be implemented? ...
user avatar
3 votes
0 answers
497 views

Locality Sensitive Hash (similar to k-Nearest Neighbor), in Python+Numpy

I've tried implementing Locality Sensitive Hash, the algorithm that helps recommendation engines, and powers apps like Shazzam that can identify songs you heard at restaurants. LSH is supposed to run ...
Josh.F's user avatar
  • 187
2 votes
0 answers
286 views

Fnv1a hashing of C# Guid

I have the following implementation of the Fnv1a hashing for a string, which should be correct: ...
yngling's user avatar
  • 121
2 votes
0 answers
38 views

Basic login by username logic with SQL Server

My goal is to make a very simple library with the authentications basics: create a user and save its hashed password, change its password, have a method to check if the password is correct for login. ...
user avatar
2 votes
0 answers
57 views

Database code for Python-based URL shortener

I had implemented a URL shortener with Python and a database. Please review the database part of the code. The idea is to create an MD5 hash of the URL in question and then store it in a database. The ...
Suryasis Paul's user avatar
1 vote
0 answers
82 views

HaveIBeenPwned API

Please find my code for securely checking Haveibeenpwned for breached passwords This code will only send a partial HASH over the internet (using HTTPS) and the second part of the HASH will be checked ...
EML's user avatar
  • 2,033
1 vote
0 answers
87 views

SHA-256 implementation in JS (core codes)

As told by experts, I am re-posting the code review request with the code. Brief Description: from outside sha256() will be called with parameter having UTF-16 character set. then after prepareData()...
Sayan Shankhari's user avatar
1 vote
0 answers
520 views

MD5 implementation with SSE2

My implementation of MD5 (hash function) works correctly, though it has terrible performance. As a laboratory work, I must write the algorithm myself and implement the brute force. full code with ...
beatsspam's user avatar
  • 111
1 vote
0 answers
191 views

Minimal length of substring that forms cyclic string

there is a knows problem stated as "Cyclic string": A string S has been recorded many times, and then from the resulting line took a substring, and give to you.Your task is to determine the ...
Alexander Myltsev's user avatar
0 votes
0 answers
107 views

Deterministically hash dictionary

I need to compute a deterministic hash for a JSON-serializable dictionary. This answer almost does the job, but there are a few problems. If dict1 == dict2 then I ...
actual_panda's user avatar