Shannon entropy score for any string directly from command line.
-
input <- any string
-
output -> Shannon entropy (score)
REQUIREMENTS: you need to have R installed in the system where you are running the scripts on.
$ ./parser.sh https://twitter.com/username | ./entropy.r
For anything except experimentation, consider using Twitter API and https://github.com/sferik/t
$ sudo t search all keyword | tr '\n' ' ' | sed 's/[[:blank:]]//g' | ./entropy.r
$ ./parser.sh www.website.com | ./entropy.r
$ echo -e "any string" | ./entropy.r
$ cat filename | tr '\n' ' ' | sed 's/[[:blank:]]//g'
$ echo -e "p4zSv0Rd" | ./entropy.r
$ openssl rand -base64 32 # will produce a password that is 32 characters long
Khan Academy has a great introduction to entropy here: