Yadda zaka san jimlar MD5 ko SHA na kalma, jumla ko fayil

Kwanakin baya na nuna muku rubutun da amfani dashi Bash y md5sum Na rufa da kalmar sirri daidai ne da tsarin tsaro mai sauki wanda na tsara kaina.

Watau, a cikin m ya ce:

echo "desdelinux" | md5sum

Kuma zan sami adadin MD5 na wannan kalma ko rubutu, a wannan yanayin: daga Linux

Godiya ga Haka na hadu da shasum ... wanda yafi amintacce fiye da md5sum.

Arin bayani kaɗan, MD5 hanya ce ta kare rubutu, bin misalin da ya gabata, MD5 na daga Linux es:

2dac690b816a43e4fd9df5ee35e3790d

Bayanin dalla-dalla shi ne cewa komai tsawon rubutun, MD5 nasa koyaushe zai zama haruffa 33 (haruffa da lambobi), misali wannan shine MD5 na: Koyi zama mafi kyau daga Linux

98a53ca0624f3bc555f7f5055d8248c2

Kamar yadda kake gani, haruffa 33 daidai suke.

Matsalar da take da shi shine don dalilai na tsaro MD5 ba ainihin mafi bada shawara bane, don ɓoye kalmomin shiga misali, tunda tuni an gano rikice-rikice na MD5. A wasu kalmomin, haɗuwa da haɗi ita ce, igiyar rubutu daban-daban guda biyu na iya ba da iri ɗaya, wancan (wancan) (misali) "linux" da "hsjajeya" duk suna ba da jimla iri ɗaya.

Ga waɗanda suke kama da ni waɗanda ba su da damuwa game da tsaro, akwai wasu hanyoyin ... yau zan yi magana game da SHA.

Ga hanyar gani na, SHA (Amintaccen Hash algorithm, Wanda NSA ya ƙirƙira) yana aiki da manufa ɗaya kamar MD5, kawai yana ba mu ƙarin zaɓuɓɓuka.

Misali, jimlar jimla SHA de «daga Linux"zai:

echo "desdelinux" | shasum

Sakamakon shine:

2ed14068a18ce404054dfc63e50c28e918a92a14

Kamar yadda kake gani, ya fi haruffa fiye da MD5, yanzu haruffa 41 ne maimakon 33 na MD5.

Amma wannan ba duka bane, wannan kuɗin yana amfani da SHA-1, amma zamu iya inganta ingantaccen tsaro ta amfani sha256sum , sha384sum y sha512sum.

Abin da zan yi mai sauki ne, ƙara ɓoyayyen ɓoye b ...

Duba a nan zanta na «daga Linux"amma tare da sha256sum:

echo "desdelinux" | sha256sum

Sakamakon:

092eb52ac23733af779224f9f7511be782e57264bd1af3afba6bd6454f471f8a

Kamar yadda kake gani, ƙarin haruffa da yawa, musamman 65.

Ni kaina na yi amfani da sha512sum a cikin rubutun na don kare kalmar sirri hehe ... kuma don ci gaba da misalin, the sha512sum de «daga Linux"zai:

Suna daidai: haruffa 129 😉…. wannan, Ina so in ga wanda zai zama wayayyiyar hanya da zata iya guess LOL!

Amma…

Yaya ake sanin MD5 ko SHA na abubuwan cikin fayil?

A ce muna da fayil ɗin daga linux.txt ... wanda ya ƙunshi abubuwa masu zuwa:

<° Linux (aka DesdeLinux) shafi ne da aka keɓe don batutuwan da suka shafi Software da Kayan Fasaha na Kyauta. Burinmu ba wani bane face samar da duk wadancan masu amfani wadanda suke sababbi ne ga duniyar GNU / Linux, wurin da zasu sami sabon ilimi ta hanya mafi sauki.

Don sanin jimlar MD5 na wannan fayil ɗin mun sanya a cikin tashar mota:

md5sum desdelinux.txt

Wannan zai nuna mana:

dbc34981efb56416969e87875f8d4b8e desdelinux.txt

Yi shi da SHA maimakon MD5… tsammani 😀…:

shasum desdelinux.net

Kuma zai nuna mana:

097a527d1b5cfa393f7d8b45b82c9c52cc4f18d2 desdelinux.txt

Ko kuma idan kuna so, zaku iya amfani da sha256sum, sha384sum ko sha512sum 😉

Duk da haka dai, labarin ya ƙare a nan.

Na sami abin sha'awa sosai koya game da wannan, koyaushe ina sha'awar abubuwan da suka danganci tsaro, ina fata ku ma kuna da sha'awa.

Idan wani yana da wasu tambayoyi, to ban ɗauki kaina masani kan batun ba, amma ba tare da wata shakka ba zan yi ƙoƙari in taimake ku 😀

gaisuwa


Abubuwan da ke cikin labarin suna bin ka'idodinmu na ka'idojin edita. Don yin rahoton kuskure danna a nan.

13 comments, bar naka

Bar tsokaci

Your email address ba za a buga.

*

*

  1. Mai alhakin bayanan: Miguel Ángel Gatón
  2. Dalilin bayanan: Gudanar da SPAM, gudanar da sharhi.
  3. Halacci: Yarda da yarda
  4. Sadarwar bayanan: Ba za a sanar da wasu bayanan ga wasu kamfanoni ba sai ta hanyar wajibcin doka.
  5. Ajiye bayanai: Bayanin yanar gizo wanda Occentus Networks (EU) suka dauki nauyi
  6. Hakkoki: A kowane lokaci zaka iyakance, dawo da share bayanan ka.

  1.   dansuwannark m

    bai san cewa ana iya amfani da md5 da sha a cikin fayilolin rubutu ba. da kyau bayanai. Na saba da ganin irin wannan hanyar ta tsaro a cikin ISOs ta distro. hehe

    1.    Charlie-kasa m

      Ba wai kawai don fayilolin rubutu ba, ana iya lissafa shi zuwa kowane nau'in fayil.

      1.    dansuwannark m

        da kyau, yanzu na sani. kowace rana zaka iya koyon sabon abu.

    2.    Giskard m

      A cikin Linux komai fayil ne 😉 Ka yi tunanin abin da zaka iya yi yanzu tare da wannan.

      1.    KZKG ^ Gaara m

        Ko fayil ko babban fayil actually

  2.   Giskard m

    Layin labarai masu kyau sosai daga KZKG ^ Gaara. Idan buƙatun suna aiki, tunda kunyi ɗaya akan GPG amma tare da maɓalli, za ku iya yin ɗaya wanda ya haɗa da amfani da maɓallan biyu?
    Idan buƙatun suna da daraja, tabbas 🙂

    1.    KZKG ^ Gaara m

      Uff, har yanzu ban bayyana sosai kan batun makullin GPG ba kuma wataƙila hahahahaha, Zan ga abin da zan iya yi 😀
      Godiya ga kyakkyawan layin labarai hahahahaha

  3.   marxelo m

    Bayanin kaɗan. Ka tuna cewa "amsa kuwwa" yana gabatar da ƙarshen layi ta tsoho sabili da haka zantawar da kake lissafa lokacin amfani da ita kamar yadda take don rubutun da aka shigar + ƙarshen layi, wanda ba zai taɓa zama daidai da rubutu kawai ba.

    Abin farin ciki, zamu iya amfani da -n zaɓi don umarnin bai shiga ƙarshen layi ba. Don haka madaidaiciyar hanyar misalan da ke sama zai zama:

    echo -n "desdelinux" | md5sum

    A gaisuwa.

    1.    KZKG ^ Gaara m

      Na warware shi ta hanyar buga awk kawai shafi na 1 a ƙarshen, amma babban gudunmawar ku, an adana haruffa da yawa 😀

  4.   Bakan gizo m

    Matsayi kawai, a zahiri MD5 koyaushe yana da haruffa 32.

  5.   naut m

    Godiya ga bayanin.
    wadannan al'amuran tsaro da sirri suna da mahimmanci

  6.   JK m

    Na kasance ina koyon yadda ake lissafin md5sum a cikin Linux amma da yake ni sabon shiga ne, bayan warware matsalar yadda zan shiga tashar zuwa fayil din fayil din (Ina cewa rikici ne saboda guraben da aka albarkace su), sai na sake fuskantar irin wannan matsalar a sunan fayil ɗin: tuni na kasance cikin madaidaiciyar kundin adireshi na ce –j da gangan-- FILE NAME.EXTENSION amma da sunan fayil ɗin yana da sarari, ba ni da cakin. Na bayyana cewa ba zan iya canza sunan fayil ba saboda ina shuka shi don rafi.
    Abubuwan da na karanta a kan batun ba ma ambaci matsalar yankin sararin samaniya, mafi munin hakan, suna ɗaukar cewa koyaushe ana sanya mutum cikin madaidaicin shugabanci kuma ba ya sanya kansu a wurin sabon shiga wanda ke buƙatar tabbatar da waɗannan jimloli wannan? Godiya a gaba

    1.    Miguel m

      Barka dai, watanni 11 sun shude amma sabo sabo yana iya zama mai amfani.
      A ƙarƙashin layin umarni akwai abin da ake kira haruffan tsere na musamman.
      Ana amfani dasu don hana shirin SHELL ko rubutu daga fassarar halayya azaman ɓangare na lambar don magana.

      Misali ga abin da kuka ambata:

      md5sum Desktop / Zazzagewa / Zazzagewa \ Bitorrent / fayil \ menene \ menene \ teku.ext

      Tare da harafin "\", zaka hana tashar ta fassara wuraren a matsayin ɓangare na lambar, don haka karanta wurare a matsayin ɓangare na kirtanin hanya, samun md5 na fayil ɗin:

      Desktop / Downloads / Bitorrent downloads / file anywhere.ext

      Akwai hanyoyi daban-daban na tsere don shirye-shirye daban-daban, koda sed yana bada tserewa kamar «, #, da sauransu da dai sauransu.

      A gaisuwa.

bool (gaskiya)