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
10
votes
4 answers

Lightweight 8 byte hash function algorithm

I need to extract an 8 byte digest from a variable length string so I'm looking for such an algorithm that I will implement in c/c++. That will be part of a digital signature procedure on a microcontroller, so it has to be: writable in few lines of…
etuardu
  • 5,066
  • 3
  • 46
  • 58
9
votes
3 answers

Implement Digest authentication via HttpWebRequest in C#

Does anyone know how to screen scrape web-sites that use digest http authentication? I use code like this: var request = (HttpWebRequest)WebRequest.Create(SiteUrl); request.Credentials=new NetworkCredential(Login, Password) I'm able to access the…
RaTT
9
votes
1 answer

verifying digest signed with private key using a C program

I'll explain all the steps I've done so far and conclude with my question. using OpenSSL 1.0.1e-fips 11 Feb 2013 Generating a private and public key openssl genrsa -des3 -out private.pem 2048 openssl rsa -in private.pem -outform PEM -pubout -out…
Itay Sela
  • 942
  • 9
  • 26
9
votes
2 answers

Is there a way to disable triggering of $digest on every $http.get?

Background angular's $http service is triggering a $digest on every get (if no $digest is already running): if (!$rootScope.$$phase) $rootScope.$apply(); Ia addition to fetching objects from our API, our app has many directives with templateUrl…
seldary
  • 6,186
  • 4
  • 40
  • 55
9
votes
3 answers

How to do xml signing in ruby

I need to sign xml using ruby, someone know any method or lib for that? My xml skeleton is: service 1.0
giordanofalves
  • 173
  • 2
  • 8
9
votes
3 answers

Difference in SHA512 between python hashlib and sha512sum tool

I am getting different message digests from the linux 'sha512sum' tool and the python hashlib library. Here is what I get on my Ubuntu 8.10: $ echo test |…
KIV
  • 745
  • 8
  • 12
8
votes
1 answer

PDF Signature digest

I have a quick question about calculating the digest of a PDF document to use for a digital signature (somewhat related to one of my earlier questions, I'm trying to figure out why you would need to know a client's certificate to create the correct…
Niels
  • 125
  • 2
  • 4
8
votes
2 answers

Digest authentication in Python?

I'm trying to access pages from my company server with python. The first trail return 401: Unathorized(the server does need domain username/pwd for authentication). And the header content is as follow, and it seems to support 3 authentication…
badguy
  • 113
  • 1
  • 2
  • 6
7
votes
3 answers

Digest::CRC32 with Zlib

In my code, I need to hash files using a variety of algorithms, including CRC32. Since I'm also using other cryptographic hash functions in the Digest family, I thought it would be nice to maintain a consistent interface for them all. For the…
Matheus Moreira
  • 17,106
  • 3
  • 68
  • 107
7
votes
3 answers

AngularJS scope doesn't update until do something in ui, like click a object with a function

I am trying to add class to my sidebar when the viewport is less than or equal to 641px, and I have to watch the width of the window for that case $scope.$watch(function(){ return $window.innerWidth; }, function(value) { if…
Joey Hipolito
  • 3,108
  • 11
  • 44
  • 83
6
votes
2 answers

What's the best way to generate a short hash string from a longer string

I'm trying to create short non-colliding strings from longer strings in Ruby. What's the best way to do this? Base64 encode a MD5 hash? This is the use case: loop do key = short_hash("#{user_id}-#{timestamp}") break if $redis.setnx(key,…
Aaron Gibralter
  • 4,773
  • 3
  • 35
  • 50
6
votes
1 answer

Epson TM-T88V-i digest authentication not working

My Epson TM-T88V-i receipt printer tries to fetch XML data from a server URL which needs the printer to authenticate via HTTP digest. (this Epson feature is called "Server Direct Print") From the printer's web console I'm able to send a test request…
ninsky
  • 1,772
  • 23
  • 31
6
votes
1 answer

MessageDigest SHA-512 different than openssl

I can't figure out what I'm doing wrong here. I have the following code: byte[] digest = new byte[0]; MessageDigest md = null; try{ md = MessageDigest.getInstance( "SHA-512" ); } catch( NoSuchAlgorithmException e ) { return digest; } digest…
Tim
  • 377
  • 1
  • 4
  • 6
5
votes
1 answer

Issue with securing RTMP streams from Level3 CDN

I am currently dealing with securing rtmp streams from Level3 CDN. The documentation can be found here: https://rapidshare.com/files/1450549534/Token_Components.html (looks like you need to be logged in to view, therefore i re hosted on rapidshare.…
The Surrican
  • 29,118
  • 24
  • 122
  • 168
5
votes
3 answers

Docker: Pulling an image by digest, that internally uses a tag

Take for example the following repository hosted on dockerhub: https://hub.docker.com/r/frolvlad/alpine-miniconda3 The following command is executed to pull an image via digest: docker pull…
Copy and Paste
  • 496
  • 6
  • 16
1 2
3
29 30