hash Questions

4

I am trying to calculate the MAC using Cryptographic checksums are calculated using ISOIEC 9797-1 MAC algorithm 3 with block cipher DES, zero IV (8 bytes), and 1S09797-1 padding method 2. The MAC ...
Causation asked 1/12, 2013 at 13:31

1

As pointed out in answers to Generic hash for tuples in unordered_map / unordered_set and elsewhere, Boost has an implementation of boost::hash<tuple<string, string>>. So, we can do thi...
Philippopolis asked 9/7, 2021 at 16:25

3

Solved

How can I calculate NTLM hash of a passowrd in python? Is there any library or sample code? I want it for writing a NTLM brute force tools with python (Like Cain & Abel )
Prudential asked 24/3, 2013 at 20:30

2

Solved

I have had numerous cases where I need access to a decent hashing algorithm in C#, from overriding GetHashCode to performing quick comparisons/lookups against data. I have found the FNV hash to be...
Rumilly asked 20/12, 2012 at 14:34

3

Solved

I am having trouble understanding how the rolling hash algorithm works after the hash has been reduced to modulus value by dividing by a prime number. Consider the sequence of 5 digits in the numb...
Myers asked 23/4, 2016 at 17:26

2

I am a bit confused about bcrypt usage in VueJS ... I am working on a sample application with VueJS as FE and NodeJS as BE (+ Postgres as the DB). In NodeJs, there is no problem for me to encrypt t...
Jalbert asked 24/9, 2020 at 17:52

2

I'm trying to make a request to Marvel API on Postman but I got Error code: 401 { "code": "InvalidCredentials", "message": "The passed API key is invalid."...
Trevortrevorr asked 1/6, 2021 at 13:10

3

Solved

I would like to achieve resumable on-the-fly hash generation of some file being uploaded on the server. The files are big so I am using the update(byte[]) method of MessageDigest class (as describe...
Oliguria asked 1/8, 2012 at 10:51

3

Solved

Is it possible to calculate a SHA-1 hash in PowerShell V2.0? The only information I can find online is with PowerShell V4.0.
Bernicebernie asked 1/12, 2014 at 15:55

4

Solved

I am new to PHP Development. Today I came across the interesting topic of URL fragments, specifically the # part of URLs. I searched and found that it's like www.example.com/foo.html#bar But I don...
Idou asked 23/6, 2015 at 8:18

3

Solved

How to construct URI object with query arguments by passing hash? I can generate query with: URI::HTTPS.build(host: 'example.com', query: "a=#{hash[:a]}, b=#{[hash:b]}") which generates https:...
Farcy asked 21/10, 2015 at 10:45

2

Solved

I recently looked for a way to correctly create and use nested hashes in Ruby. I promptly found a solution by Paul Morie, who answered his own question: hash = Hash.new { |h,k| h[k] = {} } I pro...
Chitterlings asked 4/5, 2015 at 18:31

8

Solved

If I have a hash my %h = ( secret => 1; ); and I know that is only is one key in the hash, but I don't know what it is called. Do I then have to iterate through that hash my $key; foreach ...
Bugbear asked 11/8, 2011 at 14:58

18

Solved

I have a hash: h1 = {:a => :A, :b => :B, :c => :C, :d => :D} What is the best way to extract a sub-hash like this? h1.extract_subhash(:b, :d, :e, :f) # => {:b => :B, :d => ...
Sidnee asked 26/1, 2012 at 21:1

2

Solved

How can I generate the right release key hash in Ubuntu? I have already referred this but i can't get my answer.
Torture asked 12/10, 2015 at 4:48

3

Solved

http://play.golang.org/p/SKtaPFtnKO func md(str string) []byte { h := md5.New() io.WriteString(h, str) fmt.Printf("%x", h.Sum(nil)) // base 16, with lower-case letters for a-f return h.Sum(n...
Theresatherese asked 11/10, 2013 at 23:56

3

I'm looking for a hash-function which will produce the same result for unordered sequences containing same elements. For example: Array_1: [a, b, c] Array_2: [b, a, c] Array_3: [c, b, a] The ha...
Electrocorticogram asked 12/12, 2012 at 20:19

6

After the linkedin password hash leak, I've been looking at our password hashing. We using Django 1.4 which uses PBKDF2, which is great and a step up from the previous SHA1. However I'm curious ho...
Fussell asked 2/7, 2012 at 17:15

7

Solved

The SHA1 hashes stored in the tree objects (as returned by git ls-tree) do not match the SHA1 hashes of the file content (as returned by sha1sum): $ git cat-file blob 4716ca912495c805b94a88ef6dc3fb...
Isley asked 29/8, 2011 at 1:37

5

Solved

I want to use the Python hash() function to get integer hashes from objects. But built-in hash() can give negative values, and I want only positive. And I want it to work sensibly on both 32-bit an...
Landes asked 12/9, 2013 at 14:7

4

Solved

I want to create an object with strong params that can accept dynamic hash keys. This is my code, Quiz.create(quiz_params) def quiz_params params.require(:quiz).permit(:user_id, :percent, :gra...
Conform asked 11/10, 2016 at 21:24

6

Solved

I have a java applciation in which I want to generate long ids for strings (in order to store those strings in neo4j). In order to avoid data duplication, I would like to generate an id for each st...
Mitis asked 16/2, 2012 at 10:34

4

In Python, I would like to quickly compute an order-invariant hash for the lines of a file as a way to identify "uniquely" its content. These files are for example the output of a select ... from t...
Toxoid asked 17/2, 2017 at 20:17

10

Solved

I'm looking for a hash function that: Hashes textual strings well (e.g. few collisions) Is written in Java, and widely used Bonus: works on several fields (instead of me concatenating them and ap...
Anana asked 2/11, 2009 at 10:35

4

Solved

I've got an array of hashes representing objects as a response to an API call. I need to pull data from some of the hashes, and one particular key serves as an id for the hash object. I would like ...
Cofsky asked 20/1, 2011 at 23:38

© 2022 - 2024 — McMap. All rights reserved.