We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,594 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion
Page 4 of Article: SHA1
Hi guys, I tried to get each line of the text file and convert it to SHA-1 formart then to binary but i could not get the output when i tried to do system.out.println the code: package hash; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.Formatter; import java.io.*; import java.security.DigestInputStream; import java.util.logging.Level;…

Hi guys,

I think i got it by using boolean to check . Thanks.

drogba123
Junior Poster
170 posts since Mar 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Hi guys,

I have another issue to solve.

Now i am trying to implement a linear table to store all the values.

for example: (array table of size 5)

0 [00101]
1 [10000]
2 [01010]
3 [11000]
4 [10110]

My idea is to store whatever being read in the text file (translated to binary first using SHA-1) and insert them into the array table. However how am i supposed to store the next value into the linked list?

so like become:

0 [000....] -> [000011101] -> [00010101]
1 [001]
2 [010]
3 [011]
4 [100]
5 [101]
6 [110]
7 [111]

Thanks!

drogba123
Junior Poster
170 posts since Mar 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.0488 seconds using 2.46MB