Category "hash"

Bouncycastle how to envelop the signed digest it in the original document with java?

In connection with this issue: https://github.com/bcgit/bc-java/issues/1021 I am looking for the best method to envelope the signed hash of a document inside th

invoking a stored procedure with input parameter and out cursor in perl script

Trying to execute a procedure in perl script, Proceure ->create or replace PROCEDURE Getproc ( v_catg IN CHAR DEFAULT NULL, v_cursor OUT SYS_REFCURS

How does bcrypt "know" whether a given hash is associated with a given password?

Given a password P and hash H, the function bcrypt.compare(P, H) tells you whether or not H is a bcrypt hash of P. Question: How does bcrypt.compare do the abov

How to directly assign the SOLE hash key to a scalar in perl

Is it possible to assign the only existing hash key directly to a scalar? For example can these two statements be combined into one? @the_keys = keys %the_hash;

Custom Hashing Algorithm

Out of sheer boredom, I decided to write a hashing algorithm in python. It all works, however I've got a couple problems: Results are similar (e.g. hash(1234)

How to disable laravel 5.2 password bcrypt

I want to disable the laravel password bcrypt when I try to log-in like this Auth::guard('client')->attempt( 'id' => $request['id'], 'password' => $re

How can I compare a file's SHA256 hash in PowerShell to a known value?

If I've downloaded a file with a known SHA256 hash, how can I use PowerShell to check that the file matches the expected hash?

(Python) Hash function returns different values depending on how the script is called (cmd vs IDE)

I have a script that scrapes cell value data from an excel workbook into nested tuples. Then it returns the hash of that tuple. I can run it in my IDE (Spyder

Is there a way to hash a command output without the use of a temp file?

In command-prompt you can see the md5 or other hash of a file using certutil -hashfile <filepath> <hash algorithm>. This was the only option I can f

How was the initial hash value (H(0)) of SHA-224 obtained?

RFC 6234: US Secure Hash Algorithms (SHA and SHA-based HMAC and HKDF) explains only how the initial hash values (H(0)) for SHA-256, SHA-384, and SHA-512 were ob

Unable to match results of php hash_hmac() and coldfusion hmac()

I am working on encrypting a URL and converting a working script from PHP to ColdFusion. I have completed 95% of the work but I am stuck at this point after try

Java - Hashing with HmacSHA384 and encoding with HexDigest

I'm trying to replicate the same signature outcome as the Python code in Java. Python Code Example: secret = "1234abcd".encode() encoded_payload = json.dumps(pa

VB.NET Core 6, Hashing password in (Win form) using SHA512 - Visual Basic

I am trying to build an application where security and encryption are a high concern. I am using Visual Studio 2022 and VB.NET 6.0 (I searched for 3 days now an

How to read HASH(0x1fcb970) using perl?

I'm really lost with this, how can I read this response form an API HASH(0x1fcb970) using perl. my @info= $connection->fetchrow(); When I try to print the d

Order images based on similarity

I have a lot of images in a folder that I would like to put in order based on how similar they are. The images are histological slides from a tissue microarray

Hashing a file in Python

I want python to read to the EOF so I can get an appropriate hash, whether it is sha1 or md5. Please help. Here is what I have so far: import hashlib inputFil

PHP soap wrong digest hash

I'm trying to send a SOAP message from PHP to a server, and I'm stuck at generating a SHA256 hash of the data being sent. Here is an example request provided by

How to hash a big file without having to manually process chunks of data?

When we want to get the hash of a big file in Python, with Python's hashlib, we can process chunks of data of size 1024 bytes like this: import hashlib m = has

Compare md5 hashes of two files in python

I want to compare hashes of two files. But no matter if files are different or not, even with different hashes comparison results True Here is the code: imp

Why Double Hashing has bad cache performance?

The Wikipedia article on Open Addressing says: linear probing has the best cache performance but is most sensitive to clustering, while double hashing has poor