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
3
votes
0 answers

Why can container IDs be abbreviated in docker but not image tags, container names or image digests?

Given, on the repository I have a situation like this: $ docker images REPOSITORY TAG IMAGE ID CREATED SIZE myrepo:5000/myimage latest 1c3c75da38df 3 days ago…
con-f-use
  • 3,772
  • 5
  • 39
  • 60
3
votes
0 answers

NodeJS - How to write a Digest Auth Header for connecting to Mongodb Atlas Api

I am trying to link my nodejs app with my mongodb atlas cluster and I need to be able to add and delete users using the AtlasDB API. The API requires Digest authentication to access, and the api is very vague on how to actually write this…
SirWinning
  • 111
  • 8
3
votes
0 answers

error using the 'digest' package in R

I recently had some problems installing and using the package "digest" in R-3.4.3, which I used previously in R-3.4.1 with no problem. Below are the messages I received from R. install.packages("digest", dependencies = TRUE) trying URL…
W.O.
  • 31
  • 1
  • 4
3
votes
2 answers

Can not Download 'digest' package in R

I am trying to create clustered box plots in R. Everything about my code seems on track, but when I try to run it I get the error warning "Error in loadNamespace(name) : there is no package called ‘digest’. When I try to download the package…
Jackie Albert
  • 33
  • 1
  • 3
3
votes
2 answers

Where does Digest::SHA2.hexdigest() defined?

I'm following through the tutorial from the book Agile Web Development with Rails and I found the following code: def User.encrypt_password(password, salt) Digest::SHA2.hexdigest(password + "wibble" + salt) end Looking into the Digest source…
ryanprayogo
  • 11,587
  • 11
  • 51
  • 66
3
votes
1 answer

R equivalent of Python's hashlib.sha256 function

I'm trying to replicate the output of the following Python code in R: import hashlib x = hashlib.sha256() x.update("asdf".encode("utf8")) print(x.digest()) #…
ytk
  • 2,787
  • 4
  • 27
  • 42
3
votes
3 answers

Getting hash (digest) of a file in Python - reading whole file at once vs reading line by line

I need to get a hash (digest) of a file in Python. Generally, when processing any file content it is adviced to process it gradually line by line due to memory concerns, yet I need a whole file to be loaded in order to obtain its digest. Currently…
Krzysiek
  • 7,895
  • 6
  • 37
  • 38
3
votes
1 answer

Using OkHTTP 3 with Digest

So in order to use digest authentication with OkHTTP I need to use the digest plugin or implement myself so naturally I am using the plugin. However the example usage on the repositories readme is for the previous version of OkHTTP and I cannot use…
3
votes
2 answers

Digest authentication with Guzzle

Trying to get to get JSON response from API that uses digest authentication. I am using Guzzle for the client. This is what I have so far and doesn't seem to work. Any suggestion?
Sujan
  • 150
  • 10
3
votes
1 answer

Why does Go sha256 give different result than Ubuntu command sha256sum?

Golang playground link given in a SO question uses the sha256 lib of Go gives a different result than running the following command in Ubuntu linux. echo "sha1 this string" | sha256sum Go's result:…
RayfenWindspear
  • 6,116
  • 1
  • 30
  • 42
3
votes
1 answer

how to encrypt password of server.xml in tomcat 7

I want to digest/encrypt tomcat's server.xml password. I have seen several codes in the internet which leads me to add factory inside Resource tag as you see below. Unfortunately I have Atomikos already added in the factory whick do not allow me to…
Tonyukuk
  • 5,745
  • 7
  • 35
  • 63
3
votes
1 answer

How to sign xml with X509 cert, add digest value and signature to xml template

I am quite new to C# and especially new to Signing with X509. I have an xml template in which I have to add the certificate used (done) and sign the timestamp (TS-1), the binary security token and the body (id-1). Furthermore, I need to write (e.g.…
Johannes
  • 147
  • 3
  • 14
3
votes
2 answers

Differences between Oracle and tomcat md5 hash?

when using oracle forms to generate md5 hash, i get result that is different from the result given by tomcat. when using tomcat digest, i get: C:\apache-tomcat-6.0.26\bin>digest -a md5 mypass mypass:a029d0df84eb5549c641e04a9ef389e5 while using…
mohamida
  • 804
  • 2
  • 11
  • 25
3
votes
1 answer

XML Digital Signature: How is the digest value calculated for same-document reference URIs?

My XML digital signature has the following excerpts:
SkypeMeSM
  • 3,197
  • 8
  • 43
  • 61
3
votes
1 answer

Why do digest and PKI.digest return different hash?

For example. When I calculate a hash with each functions I get different result. PKI::PKI.digest("hola", "MD5") digest::digest("hola", "md5")
kintero
  • 75
  • 3