All Questions
24,652 questions
0
votes
0
answers
19
views
Hash exceeds maximum size limit in John & Hashcat [closed]
I have 4 images that I moved to a folder called Record and I archive the folder into a RAR file. The RAR file is ~20 MB large. I forgot the password to the file and I’m trying to recover it using ...
-4
votes
0
answers
57
views
4th answer of account recovery security questions always coming back wrong [closed]
I have made a login page and at the end of signing up you have to fill out a few questions for if you ever forget your password. 3 of the questions are already done and you only need to choose a ...
-1
votes
0
answers
29
views
Get files that exists in A but not in B (content hash compare only)
Is there any way in WinMerge to see what files exist in path A but not in path B without comparing the folder structure?
0
votes
0
answers
41
views
how to receive RTP packet using socket in python
I'm writing a program in Python that receives frame information via RTSP address and outputs it via imshow() function.
I know that this code can be easily implemented by utilizing cv2.videocapture().
...
0
votes
2
answers
87
views
Writing a pure JS function for md4 hashing
I am trying to write a JavaScript script for md4 hashing. I am not sure why the code does not work as I have coded the appropriate endian conversion functions.
The full code is shown as below:
...
0
votes
0
answers
17
views
Turn off auto hash generation in Artifactory OSS
I use Artifactory OSS with a remote repository. When I download a file someFileName.jar.sha256, Artifactory delivers it although there is no such .sha256 file cached. And the mirrored remote ...
0
votes
0
answers
37
views
How to show passwords stored as MD5() in Mysql as non-compliant? [duplicate]
How can I show which MD5()-encrypted passwords are not compliant with current password standards when MD5() is a one-way hash?
Ideally, I might have a Mysql function that decrypts the MD5 and then I ...
-1
votes
0
answers
40
views
Vectorized MD5 implemention in c# not returning the correct hash
I tried to implement md5 in c#, here is the code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Numerics;
using ...
0
votes
0
answers
20
views
pyarrow parquet does not round trip for a very simple example
import numpy as np
import pandas as pd
import pyarrow as pa
import pyarrow.parquet as pq
table = pa.Table.from_pandas(pd.DataFrame(data={'a':np.arange(100)}))
with open('example.parquet', 'wb') as f:...
0
votes
2
answers
44
views
Minimal perfect hash function that retains mapping of existing keys on expansion
I have a set of N integers in the range 0 to 255 which must be mapped using a minimally perfect hash function to the range [0, N-1]. However, this set of integers can grow dynamically. In the case ...
0
votes
0
answers
21
views
valgrind tests failed in speller cs50?
My code failed valgring test.I tried so many times to figure out the error and I gave up.can someone help me to find the error ..
// Implements a dictionary's functionality
#include <ctype.h>
#...
-1
votes
1
answer
88
views
I need help formatting this code as a Ruby method [closed]
So, I have passing code for what I am trying to achieve. Now I need to format it in a method format that takes two parameters. I have more experience with JavaScript functions at this point and am ...
0
votes
1
answer
38
views
Is it possible to come up with distinct strings with identical hashcodes algorithmically?
In Java we know some examples of strings which have identical hash codes despite being distinct strings, such as Ea and FB both having a hash code of 2236.
Is there a way, algorithmically, to come up ...
-1
votes
1
answer
16
views
NodeJS consistent file hashing across operating systems
I am hashing files in NodeJS using code similar to this:
import { createReadStream } from 'fs';
import { createHash } from 'crypto';
import stream from 'stream/promises';
export async function ...
3
votes
1
answer
134
views
Why this code gives me compiler error: "Static assertion failed due to...the hash does not meet the Hash requirement"
Code pasted below:
auto myComp = []( std::array<const string, 3> &a, std::array<const string, 3> &b )
{
if ( a[0] == b[0] && a[1] == b[1] && a[2] == b[2] ) {
...
-2
votes
3
answers
62
views
Hashing type for file contents [closed]
I need to name a file after its contents as a way to prevent duplicates. The files are images, and prior to saving a new file I check my media library table for duplicate names.
So I use hash_file. ...
0
votes
0
answers
14
views
extract values associated with multiple keys in R hash [duplicate]
Suppose I have a hash in R, e.g.
testing = hash()
testing[["a"]] = 1
testing[["b"]] = 2
testing[["c"]] = 3
For this toy example, I would like to extract the values ...
2
votes
1
answer
62
views
How to access a hash in another file?
Below is the content of P4site.pm:
our %regVal = (
'wint' => {
'Bangalore' => {
'regSuffix' => 'reg_run',
'P4PORT' => {
...
0
votes
1
answer
48
views
Can I store a salted hash (sha256) of an email in a user's cookies?
I am working on a web app and need to have access to a user's salted hash email in middle-ware. The simplest way to do this, for me, would be a cookie. Since this is a salted sha256 hash, even if the ...
0
votes
0
answers
39
views
gitignore files with a particular hash but git add if hash changes
I don't want to commit or stage files that matches particular hash value but if I edit those files later it should be staged when I do git add.
Any suggestions? Basically there are files that are ...
-4
votes
1
answer
37
views
Class as dictionary key not recognizing duplicates [duplicate]
I am wanting to use a class as a dictionary key and have implemented the __hash__ function and it appears to work. However, when I have a different instance of a class that has the same hash value, it ...
0
votes
0
answers
54
views
Comparing hash of a file in git index versus git working directory is inconsistent
I have a git repo with the same file called fileA in two different paths : locationX and location Y.
I am trying to ensure that these two files are identical and if they do/do not match what's been ...
3
votes
2
answers
72
views
Why hash find method behaves differently with length statement and "if 0 then set" statement
I have following exemplary piece of code:
data hh;
keyx=1; xx=21;output;
keyx=3; xx=23;output;
keyx=4; xx=24;output;
keyx=5; xx=25;output;
run;
data tbl;
keyx=1;output;
keyx=2;output;
keyx=4;output;
...
1
vote
2
answers
88
views
Should hash code formulas change based on the variables ranges?
I have a basic class called Dice that represents groups of dice. The format I use for them is D&D's format of NdX. Where N is the number of dice and X is the number of sides each dice has. EG. 5d6 ...
0
votes
1
answer
58
views
Getting different SHA-224 values in Python and Kotlin Android
Need to validate the Hash value for a Json response received from the backend. The hash value is properly calculated in Python and matched with backend server hash value which is correct. where as I ...
0
votes
0
answers
19
views
Unbalanced hashed HAProxy balancing
I have a simple HAProxy balancing based on a header:
backend backend_nodes
balance hdr(x-some-header)
# hash-type consistent sdbm avalanche
server r-0 s-0.svc.cluster.local:80 weight 1 check
...
0
votes
1
answer
66
views
How to create argon2 password hashes with axum_login?
When I manually create user records in my database, with passwords such as:
$argon2id$v=19$m=19456,t=2,p=1$h8H23N0TGnue7RFRVwaOH$AZkmgLWbRdU8shs3I20Y7q
the axum_login crate lets me authenticate ...
0
votes
0
answers
28
views
PayU Checkout Pro in android
I am trying on integrate PayU Checkout Pro on Android but with the code below, the check out page loads up shows "Processing" and then closes by itself in a second.
As of now I am generating ...
1
vote
1
answer
120
views
Is there a way to speed up my code to find an md5 hash that starts with all zeros?
It is just for a hobby, no official or serious stuff involved. I do have a question though; when running this code, it computes around 400 million md5 hashes in the first second, then it drops down to ...
0
votes
0
answers
97
views
Encryption and Searching JSON Data using Laravel
I'm working on a system that stores users' data in a JSON format. An example of table structure and JSON format is shown below.
Visitor Id
Visitor Name
JSON Data
101
John
{JSON_DATA_SHOWN_BELOW}
...
1
vote
3
answers
127
views
Need to Eliminate a Loop
It's a lottery game. Each customer can have one or more ticket. The ticket has a number sequence of 6 digits. Every position can have digits 0-9.
There is lucky ticket number. Customers can get difts ...
0
votes
0
answers
74
views
How to digitally sign a PDF using External Container
I am using .net 8 along with following packages
itext.bouncy-castle-adapter version-8.0.5
itext7 version-8.0.5
I think the issue lies somewhere in the implementation of IExternalSignatureContainer.
If ...
0
votes
0
answers
36
views
Should I / how to retrieve miniconda installer SHA256 programatically?
I am setting up a Containerfile that should install miniconda.
The instructions for installing miniconda are available at: https://docs.conda.io/projects/conda/en/latest/user-guide/install/linux.html ....
0
votes
0
answers
18
views
Why is echo "string" | md5 AND md5 -s "string", give different has values? [duplicate]
echo 'string' | md5 and md5 <<< 'string' both give the result:
b80fa55b1234f1935cea559d9efbc39a
Whereas md5 -s 'string' gives the result: b45cffe084dd3d20d928bee85e7b0f21
Why is this so?
Edit:...
0
votes
0
answers
44
views
Incremental Hash Using System.Security.Cryptography.HashAlgorithm
Is there a way that the .Net System.Security.Cryptography.HashAlgorithm interface can be used to incrementally calculate a hash one byte at a time?
My use case is that I have a CRC32 algorithm that ...
1
vote
0
answers
55
views
Why is my generateToken() function not working?
I have created a social media page for my coursework. I have a login page and a home page. Once logged in the user is redirected to the home page, which all works fine. As soon as I add in my ...
-4
votes
1
answer
148
views
Why do we say that finding a string in a hash table is O(1)?
let us say the length of the string is L. When we are inserting this into a hash table (let us say we are using separate chaining), first of all the hash for the string is computed. How is the ...
0
votes
0
answers
25
views
How does Python *actually* decide on the order when making a list from a set in Python 3.9+ [duplicate]
I was curious about this, because knowing the answer will possibly help in bugtesting a Python project of mine that uses sets, and sometimes converts them to lists. I am not sure how it works, because ...
0
votes
0
answers
56
views
Scroll to id from menu item hash(#) to different page not working properly. I am using locomotive and Gsap animation
https://cutandshave.festcode.com/
I have passed id in the service page named "packages" and then pass hash value (https://cutandshave.festcode.com/service#packages) to the menu item for ...
0
votes
1
answer
68
views
Implement a method that takes takes 2 parameters and returns a hash with the amount of times a substring occurred in the string
I am currently learning Ruby through the odin project curriculum. This is the project description:
Implement a method #substrings that takes a word as the first argument and then an array of valid ...
0
votes
0
answers
57
views
How do I deploy a supabase function that uses deno's hash/mod module?
import { createHmac, createHash } from "https://deno.land/[email protected]/hash/mod.ts";
My supabase edge function cannot be deployed because of the deno module hash/mod not being found.
I tried ...
0
votes
0
answers
25
views
ERROR: Model Failed File Verification in OpenUBA
I have attempted to run the OpenUBA backend Python code, but each time I try to start the server i.e. by running the make command in the Linux terminal, I encounter the following error.
2024-09-25 02:...
0
votes
1
answer
50
views
How to map values in the array of arrays based on the second value in each array
I have the following data in the array of arrays:
[['apples', 2020], ['pears', 2020], ['apples', 2021], ['melons', 2020], ['peaches', 2021], ['pears', 2019]]
What I want as a result is this:
{ 2019 =&...
0
votes
0
answers
80
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
42
views
How do I create a PDF that contains a hash that the PDF also resolves to? [duplicate]
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
98
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
132
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
68
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
41
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
89
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 (...