Understanding Binary as base knowledge to learn SHA ( Secure Hash Algorithm ) in Cryptography

in #crypthography8 years ago

SHA or secure hash algorithm is an algorithm in cryptography that functioned to change a message become message digest ( message = input, message digest=output). But how to fully understand the algorithm, we have to know convert the first message to binary. And it is basic that we have to know. It's simple but come difficult if we do not know how to start. For this occasion, I will try to explain using my username @ matriks77.

ASCII Byner Table.


To start, we can use ASCII Code table and Conversion table from https://ascii.cl

ASCII CODE TABLE

From above table, I found characters about my username "@matriks77" in ASCII and hex (be marked using the blue highlight) in following as :

@ = (64 , 40) ; m = (109, 6D); a = (97, 61); t = (116, 74); r = (114,72); i = (105, 69); k = (107, 6B); s = (115, 73); 7= (55, 73); 7 = (55, 73).


CONVERSION TABLE

Now, We can do conversion @username(@matriks77) in binary like this, following higlight in the above table:
@ = (64 , 40) = 01000000
m = (109, 6D)= 01101101
a = (97, 61) = 01100001
t = (116, 74) = 01110100
r = (114,72) = 01110010
i = (105, 69) = 01101001
k = (107, 6B) = 01101011
s = (115, 73) = 01110011
7= (55, 73) = 001101111
7= (55, 73) = 001101111

The Final Result :
@matriks77 = 01000000 01101101 01100001 01110100 01110010 01101001 01101011 01110011 001101111 001101111

As a comparison


We can compare the result trough this way

Binary ASCII Table

0,1,2,3,4,5,6,7 analogous as x coordinate and 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F as y coordinate. and 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F have Base byner like this:
BINARYTBALE.png

example :
"d" located at coordinate (x,y) = (6,4) has biner = 01100100
I will be applicating in my username "@matriks77"
@ : (4,0) = 0100000
m : (6,D) = 01101101
a : (6,1) = 01100001
t : (7,4) = 01110100
r : (7,2) = 01110010
i : (6,9) = 01101001
k : (6,B) = 01101011
s : (7,3) = 01110011
7: (3,7) = 00110111
7 :(3,7) = 00110111

The Final Result :
@matriks77 = 01000000 01101101 01100001 01110100 01110010 01101001 01101011 01110011 001101111 001101111

Binary Translator


in https://binarytranslator.com we will be find the same result

Conclusion

  1. From 3 ways, found the same result.
  2. To use ASCII Code in a first way, The first step uses ASCII Code Table and continue with Conversion Table
  3. (0-9) and (A-F) has basic binary that used to convert a message to binary.

Reference
1.https://ascii.cl/conversion.htm
2.https://ascii.cl/
3.https://tanianovena.wordpress.com/2017/01/30/cara-mengubah-huruf-ke-bilangan-biner-ascii/
4.https://binarytranslator.com

Thanks for the read and for your feedback about this post. Critics, and suggestions very useful for me.

Best Regards

@matriks77

Sort:  

Hey @matriks77, great post! I enjoyed your content. Keep up the good work! It's always nice to see good content here on Steemit! :)

thank you for your response. @exxodus

This post has received a 0.06 % upvote from @drotto thanks to: @matriks77.

thanks @drotto , for your upvote

Leaving comments asking for votes, follows, or other self promotional messages could be seen as spam.

Your Reputation Could be a Tasty Snack with the Wrong Comment!

Thank You! ⚜

Coin Marketplace

STEEM 0.13
TRX 0.34
JST 0.035
BTC 108074.45
ETH 4399.12
USDT 1.00
SBD 0.83