I transcend this problem by making all my database passwords 'abcd'
Entropy, a CLI that scans files to find high entropy lines (might be secrets)
51–60 of 141 posts
Re: Entropy, a CLI that scans files to find high entropy lines (might be secrets)
#52I transcend this problem by making all my database passwords 'abcd'
Re: Entropy, a CLI that scans files to find high entropy lines (might be secrets)
#53Re: Entropy, a CLI that scans files to find high entropy lines (might be secrets)
#54Re: Entropy, a CLI that scans files to find high entropy lines (might be secrets)
#55 perl -lne 'next unless $_; $z = qx(echo "$_" | gzip | wc -c); printf "%5.2f %s\n", $z/length($_), $_'
on the principle that high entropy means it compresses badly. However, that uses each line as the dictionary, rather than the entire file, so it has a little trouble with very short lines which compress badly.It did react to this line
return map { $_ > 1 ? 1 : ($_
which is valid code but indeed seems kind of high in entropy. I was also able to fool it to not detect a high-entropy line by adding a comment of natural English to it.I'm on the go but it would be interesting to see comparisons between the Perl command and this tool. The benefit of the Perl command is that it would run out of the box on any non-Windows machine so it might not need to be as powerful to gain adoption.
Re: Entropy, a CLI that scans files to find high entropy lines (might be secrets)
#56Re: Entropy, a CLI that scans files to find high entropy lines (might be secrets)
#57Re: Entropy, a CLI that scans files to find high entropy lines (might be secrets)
#58Why would I need to install go to run this tool? I thought one advantage of go was that devs could just distribute a single binary file that works...
Re: Entropy, a CLI that scans files to find high entropy lines (might be secrets)
#59Earlier quoted context omitted.
People have been buying ineffective ads since the invention of ads
Not really, advertising is really the only field of human endeavour that is both data-driven and results-oriented. (Doesn't still stop smart people from committing fraud, but that is a different story.)
Re: Entropy, a CLI that scans files to find high entropy lines (might be secrets)
#60Why would I need to install go to run this tool? I thought one advantage of go was that devs could just distribute a single binary file that works...
Because it's a security tool so trusting a binary upfront defeats the purpose. With source you at least have the option to inspect what it really does.