hash Questions

7

Solved

How do I calculate an MD5 of a string client side in Microsoft Access?
Worshipful asked 29/1, 2009 at 17:9

5

Solved

Related, but not a duplicate of: How to define hash tables in Bash? I can define and use a bash hash, but I am unable to export it, even with the -x flag. For example, the following works to expor...
Towardly asked 17/10, 2012 at 22:57

5

I am using the djb2 algorithm to generate the hash key for a string which is as follows hash(unsigned char *str) { unsigned long hash = 5381; int c; while (c = *str++) hash = ((hash << ...
Loquacity asked 3/4, 2010 at 15:32

28

Solved

I need to convert strings to some form of hash. Is this possible in JavaScript? I'm not utilizing a server-side language so I can't do it that way.
Seismology asked 30/9, 2011 at 21:52

4

Solved

if (strpos(htmlentities($storage->getMessage($i)),'chocolate')) Hi, I'm using gmail oauth access to find specific text strings in email addresses. Is there a way to find text instances quicke...
Willianwillie asked 6/10, 2010 at 15:17

4

Solved

I have 2 fixed width files like below (only change is Date value starting at position 14). sample_hash1.txt GOKULKRISHNA 04/17/2018 ABCDEFGHIJKL 04/17/2018 111111111111 04/17/2018 sample_hash2.txt...
Selfindulgent asked 17/4, 2018 at 16:31

4

Solved

I have an array of hashes: arr = [ {:a => 1, :b => 2}, {:a => 3, :b => 4} ] What I want to achieve is: arr.map{|x| x[:a]}.reduce(:+) but I think it's a bit ugly, or at least not t...
Pone asked 4/6, 2013 at 1:23

12

How do I make an MD5 hash of a string with Delphi?
Figurehead asked 12/9, 2008 at 10:26

3

Using the package hashids, I can obtain hashes (with encode and decode) from numbers. var Hashids = require("hashids"), hashids = new Hashids("this is my salt", 8); var id ...
Araiza asked 6/11, 2014 at 14:21

9

Solved

I'm using this code to calculate hash value for a file: m = hashlib.md5() with open("calculator.pdf", 'rb') as fh: while True: data = fh.read(8192) if not data: break m.update(data) hash_va...
Cornett asked 24/7, 2014 at 15:8

10

Solved

This code is supposed to hash a password with a salt. The salt and hashed password are being saved in the database. The password itself is not. Given the sensitive nature of the operation, I wante...
Historiography asked 7/3, 2012 at 0:34

19

Solved

I am using php mysqli_connect for login to a MySQL database (all on localhost) <?php //DEFINE ('DB_USER', 'user2'); //DEFINE ('DB_PASSWORD', 'pass2'); DEFINE ('DB_USER', 'user1'); DEFINE ('DB_P...
Mchugh asked 25/4, 2018 at 16:15

2

Solved

The following will work, but I'd rather not need to repeat the __hash__ in each subclass. Is there a way to tell the dataclass to inherit the hash function (i.e. not set it to None)? from dataclas...
Theodosia asked 31/12, 2018 at 18:14

5

Solved

I'm looking for a generic way to prevent multiple form submissions. I found this approach which looks promising. Whereas I do not want to include this snippet in all of my views. Its probably easie...
Bike asked 27/3, 2013 at 23:12

5

Solved

Consider this code: h = Hash.new(0) # New hash pairs will by default have 0 as values h[1] += 1 #=> {1=>1} h[2] += 2 #=> {2=>2} That’s all fine, but: h = Hash.new([]) # Empty array ...
Estrus asked 23/4, 2010 at 12:32

12

Say I have an object that stores a byte array and I want to be able to efficiently generate a hashcode for it. I've used the cryptographic hash functions for this in the past because they are easy ...
Coltish asked 19/8, 2008 at 14:55

9

Solved

I am new to Ruby and trying to write a method that will return an array of the most common word(s) in a string. If there is one word with a high count, that word should be returned. If there are tw...
Laquitalar asked 15/10, 2014 at 17:48

3

Solved

I've written a class whose .__hash__() implementation takes a long time to execute. I've been thinking to cache its hash, and store it in a variable like ._hash so the .__hash__() method would simp...
Adlib asked 24/9, 2010 at 13:13

3

Solved

If we use a string as a Hash key, Ruby needs to evaluate the string and look at it's contents (and compute a hash function on that) and compare the result against the (hashed) values of the keys wh...
Teledu asked 17/5, 2016 at 17:37

14

I need to expire all keys in redis hash, which are older than 1 month.
Pussyfoot asked 14/5, 2013 at 14:3

7

Solved

I'm writing a tool in C# to find duplicate images. Currently I create an MD5 checksum of the files and compare those. Unfortunately, the images can be: Rotated by 90 degrees. Have different dim...
Reader asked 2/2, 2016 at 10:35

4

Solved

I've implemented a BloomFilter in python 3.3, and got different results every session. Drilling down this weird behavior got me to the internal hash() function - it returns different hash values fo...
Stative asked 17/12, 2014 at 9:48

4

Solved

I'm using hashing of strings for seeding random states in the following way: context = "string" seed = hash(context) % 4294967295 # This is necessary to keep the hash within allowed seed values np...
Walkthrough asked 15/1, 2015 at 0:20

4

Solved

Is there a length limit for the fragment part of an URL (also known as the hash)?
Warily asked 15/10, 2009 at 11:24

4

Solved

I am currently working on a collection library for my custom programming language. I already have several data types (Collection, List, Map, Set) and implementations for them (mutable and immutable...
Baylor asked 9/6, 2015 at 14:23

© 2022 - 2025 — McMap. All rights reserved.