24,063
questions
-3
votes
0
answers
36
views
login and password hashing [closed]
I have this login ang register functions in node.js, after i register a new user and try to login i cant. i have errors invalid password, 400 bad request and login failed (same 3 errors), i think the ...
-1
votes
0
answers
16
views
Hashcat token length exception [closed]
Token Length Error Screenshot
I am trying to try out Hashcat on Kali running in a VMWare hypervisor.
I am getting the following error. I have the md5.txt file in my Documents folder, and I've checked ...
0
votes
0
answers
47
views
Why does my Telegram Login Widget validation not work?
Telegram login widget returns something like this:
.../callback?id=1234567890&first_name=xxx&username=xxx&photo_url=urlhere&auth_date=1234567890&hash=verylonghashhere
...
0
votes
0
answers
32
views
How do I create a PDF that contains a hash that the PDF also resolves to?
I have a PDF document from an e-signing service where the SHA256 code inside the document also is the same hash the entire document resolves to, when I test it with a SHA256 checker.
How can this be ...
2
votes
0
answers
87
views
Hashing an R function
I am interested in hashing a function to see if it has changed. In my experimenting it seems that hashing a function does not only depend on the exact source of it. Why is this? And how can I hash a ...
0
votes
2
answers
59
views
Golang calculate hash from io.Reader and append to the end - Multireader
I've got a reader in representing some file data which I want to process, but also calculate hash which would then be appended at the end of it.
The challenge is that data hash can only be calculated ...
-2
votes
1
answer
62
views
I can't index to 0 in a python string inside a list using a function [duplicate]
I was using a function to calculate the standard deviation of some hashing methods and I can't seem to read the words from a list which in turn loads it from a file by indexing to first letter of the ...
0
votes
0
answers
28
views
How to find the gitlab reply-by-email address programmatically?
I'm building a web application which shows all the issues and notes from a project using the gitlab api.
I want to add a mailto link to create a new comment on an issue.
As far as i know there are two ...
1
vote
0
answers
61
views
How can you generate a SHA-256 hash from a JSONB column in Postgres?
I have a table in my Postgres DB that has a JSONB column and I want to automatically generate a SHA-256 hash of it.
CREATE TABLE IF NOT EXISTS car (
metadata JSONB,
hash TEXT GENERATED ALWAYS AS (...
0
votes
1
answer
53
views
What password hash type or method does blazor web app use by default
When you create a blazor project with individual accounts. What is the password hash type or method they use in the scaffolded code?
Tried looking for it but couldnt find a straight answer I thought ...
1
vote
1
answer
60
views
Which hash algorithms support binary input of arbitrary bit length? [closed]
Background
In theory, hash functions produce a binary number having bounded (often fixed) length from binary data of arbitrary length.
In practice, specifications and implementations constrain the ...
1
vote
2
answers
59
views
How to hash password in request validator?
I want to hash password and fill it in my request validator to be able to save a new employee registration. Can you help how to hash password in request validator?
Here details of my project:
Model:
&...
-2
votes
0
answers
33
views
Python Set&Dict — random probing [duplicate]
I have some working experience with C++ and now I'm trying to master Python. I have a question about Dictionaries and Sets in Pytnon.
First part of my question
As far as I know, dict is a hashmap in ...
2
votes
3
answers
199
views
yarn install failing with "Integrity check failed ...", but checksums and hashes are correct
When I run yarn install on my project, I get:
$ yarn install
yarn install v1.22.22
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
error https://registry.yarnpkg.com/d3-color/-/d3-color-...
0
votes
0
answers
41
views
Compare two datafile with same structure and identify detail differences PySpark
I have two DF like image below:
I want compare two DF in order to identify how detail differences between two table(add rows, delete rows, change values in columns...).
Note that my DF don't have any ...
0
votes
2
answers
61
views
Authenticate against Oracle 11g databse hashed password
I am looking for clarification on a old thread that the answer is correct but I would like to understand why it is correct rather then just take the code and use it in my project. I am trying to ...
0
votes
1
answer
74
views
What is the Simplest Way to Hash Some Value and then Iteratively Hash the Result? [closed]
I'm trying to manually verify that an old Electrum bitcoin wallet of mine contains keys that were derived from its seed as expected. One step in the key derivation requires that I hash the seed via ...
0
votes
1
answer
34
views
What hashing algorithm does deno.lock uses?
deno.lock stores a hash of the file against the dependency.
However, the Deno manual does not specify what hashing algorithm is used.
0
votes
1
answer
15
views
C# gives different hash of inline string than Script hasher for Content Security Policy
I have a C# string that has been built up with a stringbuilder. There are 2 lines that have the output:
Line1
Line2
I hash with this code:
public static string GetSha256Hash(string input)
{
using ...
0
votes
0
answers
66
views
DPDK: Can we create multiple RSS flows with unique set of queues for different patterns?
I have 40 RX queues setup and I need to create multiple RSS flows.
For e.g.
Flow 1: Match a particular IP pattern and distribute it to specified RX queues set (0 - 29)
Flow 2: Match a particular IP ...
0
votes
0
answers
48
views
Different hash output from crypto.pbkdf2Sync between Node.js 16.x and 20.x
I'm using the crypto.pbkdf2Sync function to generate a hash, but I'm getting different results between Node.js version 16.x and 20.x.
Here's my code:
const crypto = require('crypto');
const user = { ...
0
votes
0
answers
44
views
Are these two SHA512 password hashes (of the same password and salt combo) interchangeable?
Consider the following two ways to generate a SHA512 password hash:
[I]
console.log(require("crypto").createHash("sha512").update("mysalt" + "mypassword")....
-2
votes
1
answer
58
views
What is the openssl password salt and payload encoding schemes?
In passwords hashed with openssl, the salt and payload use an encoding. It does not look like base64, I wonder what it is.
$ 5 $ m/JgmIcrJRALRjQ5 $ XlNc5yDQITL48hPQ64ejZOJ6ChZnPiCxz2Q2GJyofC8
...
0
votes
1
answer
79
views
Need help defining hash function for custom class in C++
i have a custom Class Identifier shown below and require help in understanding the compile-time error that i am seeing due to defining a hash function for the custom user class Identifier. The class ...
-1
votes
3
answers
88
views
Multiple elements in set with the same hash
I was reading through SymPy 1.13.0 release notes when an entry caught my attention (emphasis mine):
The hash function for Floats and expressions involving Float now respects the hash invariant that ...
1
vote
1
answer
54
views
How to use xxhash in hashlib.file_digest?
I want to quickly compute hash values of large files on disk to compare them to one another.
I'm using the following:
import hashlib
def sha256sum(filename):
with open(filename, 'rb', buffering=...
2
votes
1
answer
97
views
Max Length of subarray with length equal to sum of its elements
The problem is to find maximum length of subarray with length equal to sum of elements in that subarray.
For example:
input_arr = [16, -1, 3, -7, 2, 8, 11, 24]
output_arr = [-1, 3, -7, 2, 8]
Here ...
0
votes
0
answers
29
views
Swift md5 from image
I want convert to md5 hash my image. I have created data from image. let data = image.jpegData(compressionQuality: 1) And i convert it with extension but appears to be different from the hash ...
0
votes
1
answer
108
views
compare string with size 3 characters
I am trying to verify if a string (string_view) is one of the "allowed" combinations.
String is always 3 ASCII characters - upper and lowercase - A, B, C. These are permutations of 3 ...
-3
votes
1
answer
84
views
Java Efficient Conversion of LocalDateTime to byte[] [closed]
I need to read a database table (sorted rows) with 300+ million TIMESTAMP as LocalDateTime in Java, and I need to get a single hash of all of them. Then, I need to get the same hash from the migrated ...
0
votes
0
answers
32
views
Why does `blake2b` on a `numpy` array give different results in different machines?
I ran the following code in two different machines:
import numpy as np
from hashlib import blake2b
print(blake2b(np.array([1, 2, 3])).hexdigest())
The two machines print a different result. Why ...
0
votes
0
answers
23
views
In Cryptography KAT tests how to use SHA256 correctly?
I got a project on github which I want to use for a school project and all relevant data for the question is in the "KAT" folder. However, I got 1 problem. It contains .rsp1 files with the ...
1
vote
0
answers
84
views
Rewrite ASP.NET MembershipProvider SHA1 hashing algorithm in Node.js
As part of a project I'm working on, I need to support a number of SHA1 hashed & salted passwords created by ASP.NET's MembershipProvider. I need to rewrite this in Node.js and despite scouring ...
0
votes
0
answers
28
views
.NET 7 API Middleware Mask
I am developing an API with .net 7. My question is, can we mask the parameters coming to all ends in the API in the middleware?
For example
public async Task<ApiOperationResult<Token>> ...
0
votes
0
answers
31
views
How can I find all unique sub graphs within a graph database such as memgraph?
I have a dataset of tens of thousands of directed subgraphs. The subgraphs are trees, they branch from the root node and never merge. I want to find all the unique subgraphs based on the event_type ...
0
votes
4
answers
60
views
Error when using bind_rows where one data frame has a column of type <hash>
I want to bind rows from two different data frames where one data frame contains a column of hash values whereas the second data frame doesn't contain this column.
library(tidyverse)
library(openssl)
...
0
votes
3
answers
339
views
Double floating point operations using four IEEE rounding modes implemented in terms of round to nearest ties to even
I am looking to implement the RandomX Proof of Work hash function in JavaScript + WebAssembly. The README explains how this isn't possible:
Web mining is infeasible due to the large memory ...
3
votes
0
answers
59
views
Unexpected differing BINARY results in Azure Spark Notebook depending on magic code %%sql or %%pyspark
Hello stack overflow community,
I am currenty facing an issue in an Azure Synapse Analytics Spark Notebook that I do not understand and need help with (hint: The Spark version of the Apache Spark pool ...
0
votes
1
answer
34
views
How can I make hashing algorithm for code snippets?
I would like to make an algorithm, which can detect code snippets when iterating through source codes, based on some hashing algorithms.
So for example, here is that short code snippet from a fragment ...
-2
votes
1
answer
58
views
Fast ways to Sha256 hash each line in file text
I use this code
import os
import hashlib
with open('plain_text.txt') as f: # Plain text
for line in f.readlines():
line = line.rstrip("\n")
m = hashlib.sha256((line)....
1
vote
1
answer
73
views
How to automatically create the OID (SHA-256) in MbedTLS / OpenSSL?
I am using MbedTLS in firmware. I successfully received a remote file and an encrypted hash of it that was encrypted with a private key (via OpenSSL). I used mbedtls_sha256() to locally make my own ...
0
votes
1
answer
172
views
Implementing crypto hash - Node.js 22 - Angular 18
I already searched within Stack Overflow and in Google for solutions, but none of the solutions work, I always get following error :
Error: Module not found: Error: Can't resolve 'crypto' in ....
I ...
0
votes
0
answers
31
views
Tomcat 9 digest clear text password
I'm having an issue with clear text password Tomcat9 on Windows, which is JDBC connection Tomcat9 connect to DB. I tried to digest the password with digest.bat and change the server.xml
or add Realm, ...
0
votes
0
answers
130
views
How to generate canonicalized element using c14n11
I am signing my XML document using Python's signxml library. Here's my code:
signer = XMLSigner(
method=methods.enveloped,
signature_algorithm="rsa-sha256",
...
0
votes
0
answers
54
views
How do I obtain the Signature Hash Algorithm from the certificate Signature Algorithm on Windows?
Given a certificate parsed with CNG on Windows, I am recommended to extract the "Signature Algorithm" as follows:
hashAlgorithm.pszObjId = cert->pCertInfo->SignatureAlgorithm....
0
votes
1
answer
58
views
vcpkg and vcpkg_from_gitlab - wrong hashes
I'm trying to use our custom registry to download a port of our library from gitlab, unfortunately vcpkg can't verify the hash since gitlab always generates a new package with a different hash as it ...
3
votes
1
answer
63
views
Length of hash generated from standard_hash or dbms_crypto in oracle
I am using below method to generate a hash in oracle:
select STANDARD_HASH(x, 'SHA1'), length(STANDARD_HASH(x, 'SHA1')) from (
select 'aa' x from dual union all
select 'bb' x from dual union ...
1
vote
0
answers
28
views
Why am l not able to successfully log in? [duplicate]
I am trying to login. If my details are correct, l am automatically redirected to the home page. The problem is every time l click login, it displays the error message that l entered an incorrect ...
0
votes
0
answers
31
views
Domain Specific Hashing Algorithm
I have an application that takes a set of genetic variations from a test result and maps them to a known set of haplotypes. I have the mapping process worked out, but I want a very fast way of looking ...
1
vote
1
answer
53
views
Integer hashing with basic arithmetic
I am currently working in a language made for the Hypixel Housing gamemode in Minecraft called HSL, which only supports basic arithmetic, namely subtraction, multiplication and division. All numbers ...