create account

Curso Git #15 - Git commit id algoritmo SHA by juanpchica

View this thread on: hive.blogpeakd.comecency.com
· @juanpchica · (edited)
$0.37
Curso Git #15 - Git commit id algoritmo SHA
<center>

Hola todos! espero que se encuentren muy bien!  馃 馃 馃槑

En este post les explico un poco como funciona el algoritmo SHA el cual es el encargado de generar los CommitsId en git, y que es casi imposible tener uno de estos repetidos.

![](https://steemitimages.com/DQmNTkXWw3HaUns7mDkuEXD1if3QctVR5teB1ZKxaA8PhYy/image.png)

##聽SHA (Secure Hash Algorithm)

Algoritmo desarrollado por el NIST y publicado como est谩ndar federal para el procesamiento de la informaci贸n (FIBS PUB 180); en 1995 se public贸 una versi贸n revisada como FIBS PUB 180-1 conocida como SHA-1.  馃 馃 馃槑

El algoritmo toma como entrada mensajes de longitud m谩xima de 264 bits que son procesados en bloques de 512 bits.  馃 馃 馃槑

El algoritmo se genera con los siguientes pasos...

1- Se incorporan bits de relleno al mensaje de entrada de tal modo que cumpla: longitud. El relleno consiste en un uno seguido de los ceros que sean necesarios. Aunque el mensaje ya tenga la longitud deseada, se debe efectuar el relleno, por lo que el n煤mero de bits de dicho relleno est谩 en el rango de 1 a 512 bits.  馃 馃 馃槑

2 - A la salida del paso 1, se le a帽ade un bloque de 64 bits que represente la longitud del mensaje original antes de ser rellenado.  馃 馃 馃槑

3- Se inicializa la memoria temporal MD, la cual consta de 160 bits y su finalidad es almacenar los resultados intermedios y finales de la funci贸n de dispersi贸n.   馃 馃 馃槑   La MD consta de 5 registros (A,B,C,D,E) de 32 bits cada uno, los valores con los que se inicializan son los siguientes (valores hexadecimales): 
 
A= 67452301
B= EFCDAB89
C= 98BADCFE
D= 10325476
E= C3D2E1F0

4- Se procesa el mensaje por bloques de 512 bits, cada uno pasa por un m贸dulo que consta de 4 rondas de procesamiento de 20 pasos cada una.  馃 馃 馃槑  Las rondas tienen una estructura similar, con la excepci贸n de que cada una ocupa una funci贸n l贸gica primitiva diferente (f1, f2, f3 y f4). 

La entrada a cada ronda consta del bloque de 512 bits que se est茅 procesando (Yq) y los 160 bits de la memoria MD, n贸tese que cada bloque de 512 bits actualizar谩 el valor de la memoria temporal. Cada ronda tambi茅n hace uso de la constante aditiva Kt, donde t indica uno de los 80 pasos a lo largo de las cuatro rondas. 

5- Una vez que se procesan los L bloques de 512 bits, el resumen del mensaje son los 160 bits de salida del 煤ltimo bloque.

Bueno ese es el funcionamiento de este algoritmo.

Saludos! 馃 馃 馃槑 

</center>
馃憤  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 314 others
properties (23)
authorjuanpchica
permlinkgit-tutorial-15-git-commit-id-algoritmo-sha
categoryspanish
json_metadata{"tags":["spanish","dineroconopcion","software","tutorial","git"],"image":["https://steemitimages.com/DQmNTkXWw3HaUns7mDkuEXD1if3QctVR5teB1ZKxaA8PhYy/image.png"],"app":"steemit/0.1","format":"markdown"}
created2017-09-16 02:31:24
last_update2017-09-16 02:33:00
depth0
children5
last_payout2017-09-23 02:31:24
cashout_time1969-12-31 23:59:59
total_payout_value0.349 HBD
curator_payout_value0.022 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,409
author_reputation1,274,950,455,757
root_title"Curso Git #15 - Git commit id algoritmo SHA"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,018,253
net_rshares138,893,069,589
author_curate_reward""
vote details (378)
@cheetah ·
Hi! I am a robot. I just upvoted you! I found similar content that readers might be interested in:
https://statusexcessu.wordpress.com/2013/04/18/sha-1/
properties (22)
authorcheetah
permlinkcheetah-re-juanpchicagit-tutorial-15-git-commit-id-algoritmo-sha
categoryspanish
json_metadata""
created2017-09-16 02:31:51
last_update2017-09-16 02:31:51
depth1
children0
last_payout2017-09-23 02:31:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length152
author_reputation942,693,160,055,713
root_title"Curso Git #15 - Git commit id algoritmo SHA"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,018,272
net_rshares0
@dineroconopcion ·
Este Post ha recibido un Upvote desde la cuenta del King: @dineroconopcion, El cual es un Grupo de Soporte mantenido por 5 personas mas que quieren ayudarte a llegar hacer un Top Autor En Steemit sin tener que invertir en Steem Power. Te Gustaria Ser Parte De Este Projecto?

This Post has been Upvote from the King's Account: @dineroconopcion, It's a Support Group by 5 other people that want to help you be a Top Steemit Author without having to invest into Steem Power. Would You Like To Be Part of this Project?
properties (22)
authordineroconopcion
permlinkre-juanpchica-git-tutorial-15-git-commit-id-algoritmo-sha-20170916t032853919z
categoryspanish
json_metadata{}
created2017-09-16 03:28:54
last_update2017-09-16 03:28:54
depth1
children0
last_payout2017-09-23 03:28:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length516
author_reputation23,995,833,646,806
root_title"Curso Git #15 - Git commit id algoritmo SHA"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,021,114
net_rshares0
@drotto ·
<p>This post has received a 1.04 % upvote from @drotto thanks to: @banjo.</p>
properties (22)
authordrotto
permlinkre-juanpchica-git-tutorial-15-git-commit-id-algoritmo-sha-20170916t035441608z
categoryspanish
json_metadata{"tags":["spanish"],"app":"drotto/0.0.1"}
created2017-09-16 03:54:48
last_update2017-09-16 03:54:48
depth1
children0
last_payout2017-09-23 03:54:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length78
author_reputation419,916,705,599
root_title"Curso Git #15 - Git commit id algoritmo SHA"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,022,352
net_rshares0
@minnowsupport ·
<p>Congratulations!  This post has been upvoted from the communal account, @minnowsupport, by juanpchica from the Minnow Support Project.  It's a witness project run by aggroed, ausbitbank, teamsteem, theprophet0, someguy123, neoxian, followbtcnews/crimsonclad, and netuoso.  The goal is to help Steemit grow by supporting Minnows and creating a social network.  Please find us in the <a href="https://discord.gg/HYj4yvw">Peace, Abundance, and Liberty Network (PALnet) Discord Channel</a>.  It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.</p>
properties (22)
authorminnowsupport
permlinkre-juanpchica-git-tutorial-15-git-commit-id-algoritmo-sha-20170916t034557689z
categoryspanish
json_metadata{"tags":["spanish"],"app":"cosgrove/0.0.1rc9"}
created2017-09-16 03:45:57
last_update2017-09-16 03:45:57
depth1
children0
last_payout2017-09-23 03:45:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length611
author_reputation148,902,805,319,183
root_title"Curso Git #15 - Git commit id algoritmo SHA"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,021,937
net_rshares0
@screenname ·
Re: Curso Git #15 - Git commit id algoritmo SHA
<p>This post has been ranked within the top 10 most undervalued posts in the first half of Sep 16. We estimate that this post is undervalued by $87.08 as compared to a scenario in which every voter had an equal say.</p> 
<p>See the full rankings and details in <a href="https://steemit.com/curation/@screenname/the-daily-tribune-most-undervalued-posts-of-sep-16---part-i">The Daily Tribune: Sep 16 - Part I</a>. You can also read about some of our methodology, data analysis and technical details in <a href="https://steemit.com/curation/@screenname/introducing-the-daily-tribune-most-undervalued-posts-of-nov-04---part-i">our initial post</a>.</p>
<p>If you are the author and would prefer not to receive these comments, simply reply "Stop" to this comment.</p>
properties (22)
authorscreenname
permlinkre-git-tutorial-15-git-commit-id-algoritmo-sha-20170916t132354
categoryspanish
json_metadata"{"replyto": "@juanpchica/git-tutorial-15-git-commit-id-algoritmo-sha"}"
created2017-09-16 13:23:54
last_update2017-09-16 13:23:54
depth1
children0
last_payout2017-09-23 13:23:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length763
author_reputation46,276,338,038,330
root_title"Curso Git #15 - Git commit id algoritmo SHA"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,055,133
net_rshares0