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

rails 4 image_tag is not linking to my digested image assets

In rails 4 my image_tag("assets/logo.png") is not linking to the file with digest, the assets are precompiled also the images they are in public/assets/* My production.rb: Books::Application.configure do # Settings specified here will take…
Rubytastic
  • 15,001
  • 18
  • 87
  • 175
15
votes
4 answers

How to do request HTTP Digest auth with Node.JS?

I have to write some code with Node.JS for an API documentation, but I tried the last few days all the solutions I could found on the web (including Stack of course) without succes... My API use HTTP Digest Auth and that's the problem, I was able to…
Milo
  • 151
  • 1
  • 1
  • 4
15
votes
1 answer

Rails compiles assets both with and without md5 hash, why?

I'm relatively new to RoR and I'm curious about why Rails compiles assets both with and without md5 hash for production? I run bundle exec rake assets:clean then bundle exec rake assets:precompile My production.rb file: MyApp::Application.configure…
Yuriy Bilogub
  • 377
  • 2
  • 10
14
votes
1 answer

Converting a hexadecimal digest to base64 in Ruby

I have a string representation of a MD5 hex digest for a file, that I want to convert to base64 in order to use the Content-MD5 HTTP header when uploading it. Is there a clearer or more efficient mechanism to do than the following? def…
steveh7
  • 6,606
  • 2
  • 18
  • 12
14
votes
6 answers

get back a string representation from computeDigest(algorithm, value) byte[]

The Google App Script function computeDigest returns a byte array of the signature. How can I get the string representation of the digest? I have already tried the bin2String() function. function sign(){ var signature =…
Saqib Ali
  • 3,953
  • 10
  • 55
  • 100
14
votes
2 answers

Bottle.py HTTP Auth?

How can I get my bottle.py app (Running in Paste or Cherrypy) to do HTTP (basic or digest) authentication? - I need to secure it, but cant find a any HOWTOs.
James Bennet
  • 603
  • 2
  • 10
  • 22
13
votes
1 answer

How to use common crypto and/or calculate sha256 in swift 2 & 3

I am trying to make hash a password value according to sha256. I already search this but there is no info about swift 2. This solution did not worked for me func sha256(data:String) -> String { let data =…
mesopotamia
  • 393
  • 1
  • 5
  • 19
13
votes
1 answer

What does ["string"].pack('H*') mean?

I need to translate some Ruby code to JavaScript and came across the following function: def sha1_hex(h) Digest::SHA1.hexdigest([h].pack('H*')) end What exactly does [h].pack('H*') mean in this context? How would it translate to JavaScript?
user2398029
  • 6,699
  • 8
  • 48
  • 80
12
votes
6 answers

HttpClient 4.1.1 returns 401 when authenticating with NTLM, browsers work fine

I'm trying to use the Apache/Jakarta HttpClient 4.1.1 to connect to an arbitrary web page using the given credentials. To test this, I have a minimal install of IIS 7.5 on my dev machine running where only one authentication mode is active at a…
Jesse
  • 253
  • 1
  • 3
  • 12
12
votes
2 answers

Apache HTTP client 4.3 credentials per request

I have been having a look to a digest authentication example at: http://hc.apache.org/httpcomponents-client-4.3.x/examples.html In my scenario the there are several threads issuing HTTP requests and each of them has to be authenticated with their…
11
votes
2 answers

Base-36 representation of Digest

I would like to be able to take an arbitrary string, run it through a hashing function (like MD5), and then interpret the resulting digest in base-36. I know there already exists a Digest library in Ruby, but as far as I can tell I can't get at the…
Shaggy Frog
  • 27,575
  • 16
  • 91
  • 128
11
votes
2 answers

PHP Digest HTTP Authentication example not working, why?

So I decided to use digest HTTP authentication for my REST API. I googled it and found an entry in the PHP manual with an example of how to do it. So I copy the script, put it in index.php on my server, open the page in the browser, after entering…
Erik B
  • 40,889
  • 25
  • 119
  • 135
11
votes
2 answers

Rails 4 assets not found in production (digest path is OK)

I have problem with assets in production. I can't load stylesheets, javascripts or even images. When I try to access to something, it shows me error - not found But when I try to access with -digest, it's ok. I have assets precompiled, successfully…
jirikolarik
  • 1,243
  • 1
  • 13
  • 25
10
votes
1 answer

Hashing with ironclad and flexi-streams

I'm trying to hash some strings in a Common Lisp app I'm working on. The sd-sha1 package seems to be unsupported, and has been for some time judging by the CLiki page, which suggests using Ironclad instead. Fair enough, => (require…
Inaimathi
  • 13,853
  • 9
  • 49
  • 93
10
votes
1 answer

Glassfish Security - jdbcRealm: How to configure login with SHA-256 digest

I use jdbcRealm for security in my glassfish v3.0.1 b22. It is set up so that it use the USER table inside my database for authentication by following this blog: http://blogs.oracle.com/foo/entry/mort_learns_jdbc_realm_authentication. I got it…
Thang Pham
  • 38,125
  • 75
  • 201
  • 285
1
2
3
29 30