PHP-and-MySQL/C4/MD5-Encryption/Khasi

From Script | Spoken-Tutorial
Revision as of 19:36, 4 November 2017 by Meboreen Mary (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Time Narration
00:00 Khublei. Lada phi kwah ban tip shaphang ka php security, te kane ka jinghikai kan ialam ia phi sha ka MD5 function.
00:09 Kadei ka function ba la define lypa kaba pynkylla ia ka string sha ka MD5 hash bad ailad ia phi ban iada ia ka data jong phi.
00:16 Ka 'MD5 hash' ka pyndonkam ia kawei ka lynti te kan ym lah ban shah decrypt; ia ka lah tang ban encrypt.
00:21 Tang kawei ka lad ban wad ia ka 'MD5 hash' kadei ban pynkylla ia ka string ruh sha ka 'MD5 hash' bad ianujor ia ka bad ka string kaba lah dep shah pynkylla sha ka hash.
00:31 Lada phim tip kaei kaba nga mut, ngan sa iaid lyngba jong ka ha kane ka jinghikai.
00:38 Ngan sdang da kaba batai ia ka string kaban sa dei ka password jong nga.
00:45 Ngan khot ia ka $user password bad kata kan don ia u value "abc".
00:55 Kaba bud ngan shna ia u variable bathymmai ba kyrteng '$user password e n c' kaba ieng na ka bynta ka encryption bad ngan batai ia ki 'MD5' functions jong nga kaba dei ka m,d bad 5.
01:09 Kaei kaei ka lah ban rung hangne te phi lah ban pyndap kaei kaei lada phi kwah ban encrypt hangne.
01:13 Tangba ia mynta ngan encrypt ia u $user password jong nga ba ngi lah batai hangne hajrong.
01:18 Bad lada ngi shu echo ia kane, phi lah ban iohi ba ngi ioh ia u.....,
01:27 Value jong ka 'MD5' encrypted script jong ngi kaba dei kane.
01:32 Phi lah ban iohi ba u sdang da khyndai spah bad nga tharai ba don kumba 20 tylli ki common characters.
01:39 Hynrei haba nga pynkylla ia u value sha uei uei, kane kan sa neh ha kajuh ka jingjrong jong ka length.
01:44 Tang kawei kaban sa kylla kadei ka content.
01:52 Te, ngi don ia ka encrypted string ha kaba ka hash ba phi iohi hangne ka iaryngkat bad 'abc'.
02:00 Mynta ngan shna ia ka program hangne lane ia ka script kaban ialam ia ka input na u user bad kan check ban peit lada ka password kadei 'abc'.
02:10 Mynta ka rukom ba ngi lah ban leh ia ka ha ka rukom ba ju leh kadei da kaba shim shabar ia ka encryption jong ngi.
02:17 Ngi lah ban leh ia ka simple check ban ong lada ka POST password ka iaryngkat bad ka $user password jong ngi nangta leh eiei lane leh ia kawei pat.
02:29 Te, kum ka nuksa phi lah ban don ia ka error kaba ong 'incorrect password' bad hangne phi lah ban ong 'your password has successfully matched the user password'.
02:38 Te haba ngi shim ha ka account ia ka data kaba ngi don ha ki POST variables lane ki don ha ka database,...
02:45 Une u value lehse lah ban shna na ka database bad ki database lah ban shah phiah.
02:51 Na kata kadaw lada ka database lah ban phiah, phin kwah ba baroh ki password ba dei jong ki users jong phi ban hap encrypt, khnang ba kin long kiba eh ban shem.
03:04 Khlem pep, 'abc' kan dei kaba suk ban phiah katba ka kynti ka iaid namar abc kan dei ka common password.
03:12 Da kaba pynkylla ia ka 'abc' sha ka MD5 hash phi lah ban ianujor ia ka bad ka MD5 hash kaba la don lypa ha ka database jong phi bad lada kine artylli ki hash ki iadei te kin sa tip ba ka MD5 hash ka iaryngkat bad 'abc', namar ba ia ki lah dep hash lypa kumban sdang.
03:29 Wat la katta, kaba ngin leh kadei ngin shim ia une u value hangne-'user password encrypted' – jong ngi bad ngin ianujor ia ka posted password jong ngi bad ka encrypted password jong ngi.
03:47 Mynta kaba ngi donkam shisha ban leh kadei ban lah ban ianujor ia ka $user password enc
03:55 Kane, kumba ka ieng, la encrypt bad kane ka posted password kumba ka ieng ym pat encrypt.
04:01 Te, lada phi shim ia ka MD5 hash jong ka posted password bad ianujor bad ka MD5 hash jong ka password ba la don lypa, ngi lah ban pyntip ia ki user jong ngi lada ki lah pyndap ia ka password ba dei .
04:14 Te, ngan ong, lada ka MD5 hash jong ka posted password ka iaryngkat bad ka MD5 hash jong ka password ba la don lypa kaba don hangne, une udei u variable ba ngi pyndonkam hangne, te ngi lah ban pyni ia ka message badei lane ngi lah ban pyni ia ka error message.
04:33 Bad lada ki iahap nangta ngan ong clear ia kane ka script bad thoh "Correct" lym kumta ngan shu pyndam ia ka script bad ong "Incorrect".
04:48 Ia mynta, ngim lah ban ianujor ia kine namar ngim pat dep post ia kino kino ki variables.
04:53 Hangne hapoh ngan shna ia ka form.
04:57 Method ruh kan dei ka POST namar ngi ia pyndonkam ia ka POST method hangne hajrong.
05:01 Bad ka action kan dei ka page jong nga kaba ia mynta ka don ha kaba ka 'md5 dot php' ka don.
05:08 Mynta ngan shu shna artylli ki elements jong kane kaba dei ka input text box bad ngan ai ia ka name jong ka 'password'.
05:14 Tang kawei ka daw ba nga pyndonkam ia kane kum ka type 'text' kadei – phi lah ban iohi ia ka content lym kumta phi lah ban ai ia ka ka 'password' ban pynthylli ia ki characters.
05:22 Kaba bud ngan don ia ka input box bad kane kan ong , to ngin shu ong, 'Login' ia mynta namar kane kadei ka jingpyndonkam na ka bynta ka MD5 encryption kaban dei ka log-in script.
05:34 Haba nga refresh ia ka page jong nga phi iohi Incorrect ha kane ka khyllipmat.
05:38 Kadei namar ngim ia check na ka bynta u POST variable.
05:41 Hangne nga lah ban shu ong if 'password' exists te ngi lah ban echo ia kane ka code bad ngi lah ban indent ia kane ban pynlong ia ka kaba kham lah ban read. To ngan pynioh biang ia kane hangne.
06:00 Te, lada ka 'password' jong ngi lah dep submit kaba mut kane ka form lah dep submit bad une u value bad nangta ngi ia ong "Does the MD5 hash of the encrypted password that is the password entered in the form which is our POST variable over here, equal the hash of the password stored"?
06:18 Te, ngi ia treikam bad ka encrypted data ha kane ka if statement hangne.
06:23 Lada ka iahap te ngi lah ban pyni ia kane, lym kumta ngi lah ban pyni "Incorrect". Te to ngin refresh ia katei sa shisien.
06:29 Mynta ka password jong nga kadei 'abc'. Te, lada nga type 'Alex' kum ka password jong nga, phi lah ban iohi ba ngi ioh ia ka 'Incorrect' error message.
06:37 Lada ngi type 'abc' kum ka password jong ngi, kaba kadei, phi lah ban iohi ba ngi ioh ia ka "Correct" message.
06:43 Tang ban shu ai buit ia phi ia ka content kaba nga lah ban ong hangne kadei echo bad ngan lah ban ong "compared" bad to ngin shim ia ka '$user password' jong ngi – ha ka jingshisha , em - to ngin shim ia ka encrypted password jong ngi.
07:07 Te ianujor "$user password enc to" – ngan shu pyniasnoh halor katei bad ka posted 'password'.
07:14 Ngi kwah baroh na ka ban shah encrypt te hangne ngan type 'md5'.
07:20 Ka lad ba biang eh ban leh ia kane kadei ban shna ia u variable bathymmai hangne hajrong kaba ong 'md5' – cut ia kane – te 'enc' lane '$submitted enc' ka iaryngkat bad katei.
07:37 Nangta ngi lah ban shu bujli ia ki variable jong ngi hangne khnang ban pynlong ia ka ba kham biang....,kaba kham shai...
07:49 Kam pynlong ia ka ban kham biang lane kham duna.
07:56 Tangba hangne haba ngi jied 'abc' bad haba ngi nion Login bad ngi don ia ka error.
08:01 To ngin wan phai biang bad check.... bad kadei namar ngi donkam ban buh ia kine ha ki curly brackets namar ba ngi don artylli ki lines jong u code hangne.
08:16 To ngin phai biang, nion back , jied 'abc' bad ngi ia nujor ia kane hangne, sha kane ka jaka hangne.
08:26 To ngin shu break ia ka hangne, te ngi lah ban iohi kaei kaba jia.
08:34 Te, ngi lah ianujor ia kane hangne ha kane ka jaka hangne.
08:38 Phi lah ban iohi kidei thik kijuh ki MD5 hash. Tangba, kane hangne kadei ka password ba la don lypa bad kane kadei ka password ba ngi lah dep submit.
08:46 Te phi lah ban iohi ngi ia check ia ka submitted encrypted jong ngi sha ka stored encrypted jong ngi.
08:51 Kane kadon shibun ki jingmyntoi, phi lah ban pyndonkam ia ka ha ki databases haba phi register ia u user ha ka database, encrypt ia ka password nangta buh ia ka.
08:59 Lada phi check ha ka bynta ka log-in form na ka bynta ka password,encrypt ia ka password kaba ki users ki pyndap ha ka log-in form bad check ia ka bad ka encrypted password ha ka database.
09:08 Te phi lah ban iohi ba kane kadon shibun ki jing myntoi bad ka suk bha ban declare. Phi donkam ban don tang ia ka md5() function hangne.
09:16 Tang katto ba phi donkam ban tip bha ia mynta halor ki MD5 functions bad kumno ban pyndonkam ia ki bad kumno ban pyntreikam ia ki sha ki forms jong phi.
09:23 Te, khublei shibun ia ka jingpeit jong phi.
09:26 Nga don sa kiwei pat ki security tutorials kiban sa wan; te sa peit ia ki. Khublei Shibun.
09:29 Nga i Meboreen na Shillong, nga dubbed na ka bynta ka Spoken Tutorial Project.

Contributors and Content Editors

Meboreen Mary