Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Calculating Hash Value

Calculating Hash Value

Put your problem here if it does not fit any of the other categories.

Calculating Hash Value

Postby peru0002 » Thu Jul 08, 2010 2:01 am

Hi All,

I want to calculate the hash value of the all the folders in a
particular directory. I am able to do it in a java application.


Any idea how to do it in Android?


Thanks in Advance,
Perumal
peru0002
Developer
Developer
 
Posts: 45
Joined: Thu Jan 21, 2010 5:56 am

Top

Re: Calculating Hash Value

Postby nicholas.hauschild » Thu Jul 08, 2010 3:04 am

I am unsure as to what you are asking. How do you do it in Java? I suspect it will be quite similar to do with Android.
nicholas.hauschild
Master Developer
Master Developer
 
Posts: 310
Joined: Fri Dec 04, 2009 4:50 am

Re: Calculating Hash Value

Postby peru0002 » Thu Jul 08, 2010 7:32 am

In java I used the following:

SHA1CreateDigest Shash = new SHA1CreateDigest();
byte [] tog = Shash.SHA1Encode(test);

=> test is the string of which I want to create the hash value

Any idea how do I do this in Android?

Thanks In Advance,
Perumal
peru0002
Developer
Developer
 
Posts: 45
Joined: Thu Jan 21, 2010 5:56 am

Re: Calculating Hash Value

Postby nicholas.hauschild » Thu Jul 08, 2010 1:07 pm

I don't know the differences in the Hashing algorithms, but there is this...

http://d.android.com/reference/java/sec ... igest.html
nicholas.hauschild
Master Developer
Master Developer
 
Posts: 310
Joined: Fri Dec 04, 2009 4:50 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Exabot [Bot] and 15 guests