Questions tagged [digest]

also known as a hash value. Used as a key to distinguish the resources (file, uri, etc.) generating the unique key for them - digest (hash).

Digest also known as a hash value or key in software development, computer and engineering fields.

Used as a key to distinguish the resources (file, uri, etc.) generating the unique key for them - digest (hash). Hashes can be generated from variable length content with variety of methods (sha1, md5, crc32 and others) and represent fixed length generated value.

Resources:

439 questions
5
votes
1 answer

Custom Digest Authentication

I've made a Http module for digest authentication. On the server, on every request for a page this module check for existing of 'authenticate' header. If this header doesn't exist the user will get 401 message. On the client side, I'm using the…
Vlado
  • 71
  • 4
5
votes
0 answers

Hash large files with crypto.subtle.digest("SHA-256", buffer)

i have developed a web application where a user can select multiple files via a input field. Then the sha-256 checksums are calculated by the following code. The code (taken from developer.mozilla.org) only works for small files. What do I have to…
Jürgen
  • 71
  • 2
5
votes
0 answers

Changing webpack digest method

The server I am trying to build on does not have md4/md5 available (can't change this). Is there a way to force Webpack and all of the plugins to use a specific digest method? In my webpack.[env].config I have: ... output: { hashFunction:…
Jesse
  • 2,043
  • 9
  • 28
  • 45
5
votes
1 answer

How to calculate the real SHA1 of a text?

As in my last question (see details there), I am using SELECT encode(digest(x::text::bytea, 'sha1'), 'hex') FROM xtmp; Not solved, is not the same hash tham original... Perhaps the ::text enforced internal representation with \n symbols, so a…
Peter Krauss
  • 13,174
  • 24
  • 167
  • 304
5
votes
2 answers

adding hash to each row using dplyr and digest in R

I need to add a fingerprint to each row in a dataset so to check with a later version of the same set to look for difference. I know how to add hash for each row in R like below: data.frame(iris,hash=apply(iris,1,digest)) I am learning to use dplyr…
lokheart
  • 23,743
  • 39
  • 98
  • 169
5
votes
2 answers

cxf client authorization issue

I use JAXRSClientFactory.create method to create proxy like this: IMyService myService = JAXRSClientFactory.create("http://myserviceurl/", IMyService.class, "login1", "pwd", null); and this code work ok. After that I need to use this service…
kvieserc
  • 166
  • 5
5
votes
4 answers

Why would HMAC SHA-1 return a different digest with the same input?

I am trying to build a working encrypted signature for the Amazon S3 web service, writing a connection library using Objective C. I have run into HMAC SHA-1 digest problems with the ObjC code, so I'm putting that to the side and looking at…
Alex Reynolds
  • 95,983
  • 54
  • 240
  • 345
5
votes
1 answer

std.algorithm.copy and std.digest

When I use std.algorithm.copy on std.digest objects, I get different results compared when I am using put byte by byte. Why? import std.stdio; import std.digest.digest; import std.digest.md; import std.algorithm; void main() { string s =…
Tamas
  • 3,254
  • 4
  • 29
  • 51
5
votes
3 answers

Example of using AuthType Digest to authenticate a user once across sub-domains?

I have a domain that will be accessed by a small, private group of people. So I want to control access via authentication. The domain has a collection of applications installed that each have their own sub-domain. Eg: domain.com, app1.domain.com,…
user43040
5
votes
1 answer

Node SHA-256 Base64 Digest

I have a question about Node.js Crypto module's hash digest. With the input hello world on the command line a base64 encoded sha256 produces: $ echo -n "hello world"|shasum -a256|base64…
nikc.org
  • 16,462
  • 6
  • 50
  • 83
5
votes
6 answers

Creating an id from name and address data. Hash/Digest

My problem: I'm looking for a way to represent a person's name and address as an encoded id. The id should contain only alpha-numeric characters, be collision-proof, and be represented in a smallest number of characters possible. My first thought…
user42203
  • 51
  • 1
  • 3
5
votes
1 answer

Need help creating a valid nonce

I am trying to consume a web service that uses Password Digest mode, and I have these functions in my Java application to generate a random nonce, creation date and password digest. I can't get past the Authentication Failed error, and the…
Amy
  • 55
  • 1
  • 1
  • 4
5
votes
3 answers

Get SHA1 of Unicode string in Crypto++

I study C++ independently and I have one problem, which I can't solve more than week. I hope you can help me. I need to get a SHA1 digest of a Unicode string (like Привет), but I don't know how to do that. I tried to do it like this, but it returns…
aurokk
  • 53
  • 1
  • 5
5
votes
2 answers

Sign PDF using an external service and iText

I have this scenario. I have an application that generates a PDF, and that needs to be signed. We have not the certificates to sign the document, because they're in a HSM, and the only way we could make use of the certificates is using a…
EsteveBlanch
  • 125
  • 3
  • 12
5
votes
0 answers

Digest Authentication with Volley? Is it possible?

I was trying to follow the example from the question "How does one use Basic Authentication with this library?" Here is my getHeaders() function @Override public Map getHeaders() throws AuthFailureError { HashMap
Michel Ayres
  • 5,891
  • 10
  • 63
  • 97