02-17-2011, 03:50 AM | #1 |
Member
Posts: 13
Karma: 10
Join Date: Feb 2011
Location: Albuquerque, NM
Device: Kindle 3G
|
sha1 on kindle?
Is there any way, built-in or otherwise, to get an sha1 hash? I'm writing a script to interact with dropbox from my kindle, which uses oauth with HMAC-SHA1 ... and that's my main missing piece right now.
MD5 seems to be built in, but not SHA1 (from command line anyhow). Is there a way to do this through the Kindle's Java API, or does anyone have a kindle-friendly sha1 binary? |
02-17-2011, 04:07 AM | #2 |
Guru
Posts: 987
Karma: 8641
Join Date: Aug 2010
Device: Kindle 3G+WiFi
|
/usr/bin/openssl will do it. You'll have to massage the output slightly with sed or awk but just /usr/bin/openssl sha1 yourfilehere will calculate the SHA1 hash of whatever you specify.
Last edited by Tiersten; 02-17-2011 at 04:10 AM. |
Advert | |
|
02-17-2011, 12:50 PM | #3 |
Member
Posts: 13
Karma: 10
Join Date: Feb 2011
Location: Albuquerque, NM
Device: Kindle 3G
|
sweet! thanks -- can't wait to give it a try.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
The Frugal Kindle ~ Frugal Finds Under $9 for the Kindle (Kindle eBook Resource) | eTrubrown | Self-Promotions by Authors and Publishers | 3 | 10-10-2010 06:12 PM |
Transfer Kindle books from Kindle PC to Kindle 3 | ppearce | Amazon Kindle | 15 | 09-16-2010 05:11 PM |
Font hacks for the Kindle 2, Kindle International and Kindle DX | edge777 | Kindle Developer's Corner | 17 | 04-30-2010 04:11 PM |
$0.01 in Kindle Store: Interactive Sudoku for Kindle 2 and Kindle DX - Volume 1 | Xia | Deals and Resources (No Self-Promotion or Affiliate Links) | 2 | 11-07-2009 10:06 AM |