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
0
votes
1 answer

Rails: How to Expire Fragments with stale assets

I am using rails fragment caching and inside the fragment there is an image file. If i do a deploy (clearing the assets) with an updated image, the image digest fingerprint will change. So until the fragment expires it will be pointing to the old…
peter
  • 45
  • 5
0
votes
0 answers

AngularJS $location service gets refreshed multiple times

A function in my AngularJS controller are invoked multiple times (20+) for each route change. How can I avoid this? I've made a simple example: http://jsfiddle.net/r6rv078t/3/ Why is this happening, and what are the other digest related pitfalls…
CoderTR
  • 500
  • 3
  • 7
  • 19
0
votes
2 answers

Calculating SignatureValue from SignedInfo

I am currently trying to follow this tutorial on "Signing an XML Document". So far I have been able to run the c14n algorithm and calculate the appropriate DigestValue. However, I cannot seem to get the correct value for the SignatureValue field. I…
wtf8_decode
  • 452
  • 6
  • 19
0
votes
1 answer

Set Glassfish to not use any Digest Algorithm

I want my jdbcRealm to not use any Digest Algorithm in Glassfish. I want the jdbcRealm to compare against the database without converting password with any algorithm. My password in the database is MD5 and I convert the user's password to md5 in…
Johan Nordli
  • 1,220
  • 3
  • 13
  • 26
0
votes
1 answer

How enable digest or basic auth in IIS Express and set a user/password?

I'm on Windows 2012 R2 and have IIS Express on it. How enable digest or basic auth in IIS Express and where set the username/password?
user1785721
0
votes
2 answers

angular function in ng-show with a promise getting error

I'm using restangular for my app. Say I have this in my view:
Checked
and in my controller I have my api call to the…
Garuuk
  • 2,153
  • 6
  • 30
  • 59
0
votes
1 answer

'Bad File Descriptor' in Perl using module 'Digest'

I am trying to implement Perl digest for CRC, but unfortunately I am getting: Digest Read failed: Bad File Descriptor How do I fix this problem? This is the module sample code here: sub crc3439() { $ctx = Digest::CRC->new(type=>"crc16"); …
Asthme
  • 5,163
  • 6
  • 47
  • 65
0
votes
1 answer

Calendar directive animation on model change. Problems with digest cycle

It's my first project with angular and I have problems to understand the digest cycle of the system. My problem is the following. I created a month calendar directive. The days are showed with a ng-repeat that iterate on a list variable called…
Loric
  • 1,678
  • 8
  • 28
  • 48
0
votes
1 answer

SHA ID not being saved to DB correctly

I have a "User" model where I want to provide a unique page for email account validation. I'm constructing the unique argument for the validation route by generating a SHA ID based on the user's ID. However, the database value and view-printed…
Andrew Carreiro
  • 1,577
  • 13
  • 17
0
votes
2 answers

Get item from array based on hashed string in Ruby

I would like to extract an element from an array, predictably based on a string input. My use case: Generate a color for a user, based on name. One (faulty) implementation would be to generate a hash from the user name, and reduce it to a value…
Richard Johansson
  • 430
  • 1
  • 5
  • 12
0
votes
1 answer

angular.forEach() inside $scope.$watch behaves weird - spits out duplicates

I am setting a $scope.$watch over an array with nested items with the following code: $scope.$watch("networks", function( newValue, oldValue ) { if(JSON.stringify(oldValue)===JSON.stringify(newValue)){ …
nikjohn
  • 20,026
  • 14
  • 50
  • 86
0
votes
1 answer

Message Digest java

I was not aware of the MessageDigest class before. I am now trying to understand a segment of code and the documentation is not helping me much. MessageDigest digest = Crypto.sha256(); digest.update(last.getSign()); byte[] SignHash =…
Paramar
  • 287
  • 1
  • 5
  • 22
0
votes
1 answer

General Java API for password mutate / hash / digest

My web application is secured with salted, digested passwords using container managed authentication. I'd like to reduce the coupling with my current container by having a service in JNDI that handles the password mutation / verification. I was…
Peter L
  • 2,921
  • 1
  • 29
  • 31
0
votes
1 answer

Http Digest Authentication fails in node.js

I am trying to do a http get request with Digest authentication. i am posting my code below` var digestOption = { 'host' : hostName, 'port' : port, …
Balachandar
  • 1,538
  • 3
  • 16
  • 25
0
votes
1 answer

Is my OCaml implementation of SHA256 sane?

I'm a novice OCaml programmer and thought I would throw myself into the deep end by attempting to implement a very tricky algorithm. I'm open to all criticisms great and small be they stylistic or security or performance related. One criticism…
mbac32768
  • 11,453
  • 9
  • 34
  • 40