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
2 answers

Aws::S3::Errors::BadDigest while trying to store a Tempfile

I have the following snippet: tempfile = Tempfile.new(export_file.filename) begin tempfile.write(contents) file_storage_service.store(export_file.filename, tempfile) ensure tempfile.close! end And the store method is as follows: def…
linkyndy
  • 17,038
  • 20
  • 114
  • 194
3
votes
2 answers

What are the advantages of Digest::SHA over Digest::SHA1?

Are there any advantages in using Digest::SHA over Digest::SHA1 or vice versa? both seem to be maintained but I don't see a reason for Digest::SHA1 to even exist with the existence of Digest::SHA.
xenoterracide
  • 16,274
  • 24
  • 118
  • 243
3
votes
2 answers

New dataframe column as function (digest) of another one is not working for me

I want to create a new computed column (the digest of the text of another column). For you to reproduce I create a df as reproducible example: df <- data.frame(name = replicate(1000, paste(sample(LETTERS, 20, replace=TRUE),…
Emilio G.
  • 33
  • 4
3
votes
2 answers

AngularJS $watch - infinite loop

I have 2 dates - start and end. I want to validate (and re-assure) start < end. I get notified they change using $watch, and then I go and change them to make sure the condition is met, but then it triggers the $watch again and then I get max…
AlexD
  • 4,062
  • 5
  • 38
  • 65
3
votes
0 answers

Password Digest Authentication in iPhone application

I am working on an application where I need to interact with server through Password Digest Authentication. I am able to create a request but not able to understand to what format I need to convert password and nonce. Should it be MD5 or SHA1 or…
pankaj
  • 7,878
  • 16
  • 69
  • 115
3
votes
2 answers

Ruby on Rails: undefined method 'digest' Rails Tutorial Section 10.1.1

I'm currently following the Rails Tutorial by Michael Hartl and I'm having an issue on Section 10.1.1, where I'm supposed to create a create_activation_digest action in my User Model, which creates and assigns an activation token and digest to each…
Yuri
  • 108
  • 7
3
votes
1 answer

How to verify digest using openssl library?

I'm build a Licensing system in the following way. I generated a matching public and private keys: openssl genrsa -out mykey.pem 1024 openssl rsa -in mykey.pem -des3 -out prv-key.pem openssl rsa -in mykey.pem -pubout -out pub-key.pem Now I took a…
Itay Sela
  • 942
  • 9
  • 26
3
votes
2 answers

JasyptStringDigester with SHA2 becomes very slow suddenly

In my web application, login passwords are hashed and saved with JasyptStringDigester with SHA256. During login, password input by user will be hashed with same digester for comparsion. However, after the application runs about 2 days, login…
Dennis
  • 31
  • 2
3
votes
1 answer

Digest authentication for debian repository

I created a debian repository using dpkg-scanpackeges for binary packages and connected it with a site which is using apache2 directory listing. It worked fine. After that, I set a digest authentication for the site. I added the following line to…
yusufertekin
  • 73
  • 1
  • 6
3
votes
0 answers

Is there any prevailing way to compute the digest of a JSON?

I want to get the same digest value when contents of two JSONs are equal. For example, I want the following two to generate the same digest value although spaces, newlines and the key order are different. { "key1": "value1", "key2":…
Takahiko Kawasaki
  • 18,118
  • 9
  • 62
  • 105
3
votes
3 answers

sprockets - precompiling a standalone asset

I am trying to make sprokets compile a single standalone js asset, so it will uglify and minify it and be part of the entire rails projects. I need that this js to have a non-digest name, so it's will not change (i.e. embedded in other websites,…
Nick Ginanto
  • 31,090
  • 47
  • 134
  • 244
3
votes
2 answers

Can't Explain RTSP Authentication (Basic and Digest)

I apologize up front for the long post. Looking for any insight and help... So I was trying to write a simple rtsp authentication grinder in python. I ran across a rtsp port on a (camera) in a test and when I accessed it I got back: Received,…
Tek Tengu
  • 141
  • 1
  • 1
  • 6
3
votes
1 answer

Equivalent HMAC SHA-512 key

what is the equivalent HMAC SHA-512 key for the following one? 01c17afc4be444d9f27ff3b11cd206f79cbcd0fa7e262d90587338f7d5a70f92 What is the code use to get for this in ruby? I found no online converters to check this with HMAC.
Sam
  • 5,040
  • 12
  • 43
  • 95
3
votes
1 answer

Perl hmac sha256 different than PHP's using pack

I have to create a hash in Perl using SHA256 HMAC like this PHP example: I…
Welch
  • 55
  • 3
3
votes
0 answers

twisted cred with http digest authentication

I'm trying to implement twisted cred with HTTP Digest Authentication, and I'm having some difficulty. I was able to get it to work with checkPassword, but I don't want to store my passwords in the clear in the database, obviously. I'm storing the…
Sameer Parekh
  • 131
  • 1
  • 1
  • 6