Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^10: monastery mark-upedness (privacy)

by goibhniu (Hermit)
on Mar 21, 2008 at 20:05 UTC ( [id://675515]=note: print w/replies, xml ) Need Help??


in reply to Re^9: monastery mark-upedness (privacy)
in thread monastery mark-upedness

Also consider this lesson from Bruce Schneier:
http://www.schneier.com/blog/archives/2007/11/using_google_to.html

As far as I can see, the hash algorithm wouldn't have to be known in order to attempt this attack. It would only have to be used enough on the internet that it might be indexed with it's plaintext by Google or whatever search engine.

The only defense against this would be a roll-your-own algoritihm, and then you don't have the benefit of peer review in the cryptanalytic community.


#my sig used to say 'I humbly seek wisdom. '. Now it says:
use strict;
use warnings;
I humbly seek wisdom.
  • Comment on Re^10: monastery mark-upedness (privacy)

Replies are listed 'Best First'.
Re^11: monastery mark-upedness (privacy)
by kyle (Abbot) on Mar 21, 2008 at 20:23 UTC

    You could get the benefit of a peer reviewed algorithm by using some secret salt (which was suggested by Fletch in Re^6: monastery mark-upedness (brute force)).

    use Digest::SHA1 qw( sha1_hex ); my $ip_address = shift; my $secret_salt = q{you don't know this part}; my $published_hash = sha1_hex( $ip_address . $secret_salt );

    Someone who has access to the source could launch a dictionary attack now, but that would be true if the source had a roll-your-own algorithm too.

      I got that. I was only intending to point out a different attack, where the attacker may not know the algorithm or even use their own cpu to do the brute forcing, but let Google do it. I guess it was a leap to go all the way to "roll-your-own". I agree that secret salt makes this less likely, but considering the Google attack may influence implementation including how the salt is selected or maybe whether the resulting hash is ever published in a Google-able space.


      #my sig used to say 'I humbly seek wisdom. '. Now it says:
      use strict;
      use warnings;
      I humbly seek wisdom.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://675515]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-24 20:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found