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

How to allow nil password_digest when logged in with FB?

I'm 3 months into learning Rails. Trying to add Facebook auth to a Hartl tutorial sample app clone. I'd like to still allow users to create accounts w/o FB... though I'm open to suggestions on that. I want the FB login to happen instantly, without…
bluemihai
  • 405
  • 4
  • 15
0
votes
2 answers

output of hashlib.sha512.digest() has odd characters

A previous question was asked and the reader was ask to use hexdigest() instead. ...and that does work. But what is the structure of the format of digest? The following test code: import hashlib, base64 f1 = open('foo.jpeg', 'rb') m =…
B Brown
  • 15
  • 1
  • 5
0
votes
0 answers

Tomcat throw 401 when use curl do HTTPS upload

Help! We have a web server which use tomcat 7, client use curl(7.19.7), use curl do HTTPS upload file, in most cases, the file can be uploaded to web server successfully, but in few cases, the upload will fail, get 401 error, see below error from…
Berry2081898
  • 51
  • 1
  • 1
  • 2
0
votes
1 answer

Secure user login using java hash and salt

I have been trying for some time now but can't find an answer.... I am new to this topic so apologize if its a basic question... How do I store user password securely and let user login? so first time user signup, I will hash + salt the password and…
webDeveloper
  • 1,284
  • 3
  • 16
  • 31
0
votes
1 answer

Angular's template with external js libraries

I have made element directive, which works with template through templateUrl parameter. This template contains fileupload input, which needs about 8 external js libraries (jquery fileupload plugin). If I have links to these js libraries in template…
0
votes
1 answer

getting BadDigest error while trying to upload compressed file to s3 on ruby 1.9.3

as stated, i am trying to upload a file to s3 require 'digest/md5' require 'base64' require 'aws-sdk' def digest f f.rewind Digest::MD5.new.tab do |dig| f.each_chunk{|ch| dig << ch} end.base64digest ensure f.rewind end file =…
Pavel K.
  • 6,697
  • 8
  • 49
  • 80
0
votes
3 answers

rnddata digest issue

I tried to generate a big file for digest. When I used below openssl rand 8096 | head -c 8096 > rnddata, it was ok. ./hash_test sha1 Digest is: a0a4dab4a16d247fb625ca2abf07373d2123e4a5 openssl dgst -sha1 rnddata SHA1(rnddata)=…
gary
  • 1
  • 2
0
votes
2 answers

Authentication codeigniter-restserver

I am having trouble with authentication in codeigniter-restserver. When I set the config: $config['rest_auth'] to either basic or digest, I can't seem to get through the validation, using the standard logins. Is there anything else I need to take…
0
votes
1 answer

JDBCRealm digest for MySQL PASSWORD() function

For an internal Tomcat/Java/Struts application, we're converting custom-written authentication code to use JDBCRealm. The database is MySQL 5.0, and the passwords are stored as PASSWORD()-encrypted strings. In our version of MySQL, the PASSWORD()…
Plutor
  • 2,867
  • 2
  • 25
  • 29
0
votes
0 answers

Questions on Cookies cURL and Digest Auth PHP

I have 2 pages: login.php and index.php When writting localhost/mysite/login.php and writting a username and password in a form, a cURL request using CURLOPT_HTTPAUTH = CURLAUTH_DIGEST and CURLOPT_USERPWD = 'user:pass' will be passed to another file…
Guj Mil
  • 333
  • 4
  • 16
0
votes
1 answer

cURL and Digest Auth

I'm making a DIGEST AUTH using cURL and it's working perfect. The problem is, I need the browser to keep those Digest Credentials made on the login page, in all other pages without having to resend the user:pass again. Example: I'm in login.php, I…
Guj Mil
  • 333
  • 4
  • 16
0
votes
1 answer

How to manually authenticate with Digest Auth?

I have a restful api I want to access, and my app has its own login form. I want to use those credentials every time I try to access my rest resources. The problem is, since I´m using HTTP Digest, every time I send the 401 Unauthorized header, an…
Guj Mil
  • 333
  • 4
  • 16
0
votes
1 answer

PHP Digest/Basic Auth default windows look

I have an application that uses REST API and I'm implementing Digest Authentication for the security scheme. The problem is, when I log into the application, I don't want the default user/pass windows to pop out every time a resource is consumed,…
Guj Mil
  • 333
  • 4
  • 16
-1
votes
1 answer

PHP Digest authentication with MD5

I wrote a class to authenticate a user using HTTP Authentication the Digest way. I read a few articles and I got it working. Now, I would like to let it make use of Md5 passwords, but I can't seem to get it working, this is the function…
Roel
  • 1,462
  • 4
  • 19
  • 31
-1
votes
1 answer

what would the equivalent php version be of the following nodejs md5 hashing source code?

I'm migrating from nodejs to PHP and I couldn't obtain a similar output md5 hash digest for the below snippet having the same input.Perhaps there's something I'm missing. var md5sum = crypto.createHash('md5'); md5sum.update(new Buffer(str,…
1 2 3
29
30