PHP Security And Password Hashing Tutorial - Register & Login Form

Поделиться
HTML-код
  • Опубликовано: 19 янв 2025

Комментарии • 140

  • @toshwilcox5955
    @toshwilcox5955 6 лет назад +6

    After spending hours searching for good tutorials on online forms this is by far the best one I've seen, keep up the good work!

  • @davidsiwakoti3176
    @davidsiwakoti3176 4 года назад +3

    Man, you have a great content and it is very easy to follow along. I appreciate your time for doing this. Bravo!

  • @nuradilya9277
    @nuradilya9277 4 года назад

    I've been struggling with this for some time now, this is the first tutorial that worked for me so thank you!

  • @pedroenriquehermosilla9369
    @pedroenriquehermosilla9369 3 года назад +1

    thanks man! you've save me tons of hours writing code.

  • @badhegaurav
    @badhegaurav 5 лет назад

    Angel for coders because nobody can explain concepts like you in the world!!

  • @AlexitoNo007
    @AlexitoNo007 6 лет назад +2

    Hvala mnogo, znao sam da si ti neki balkanac ;)

  • @egggaming3969
    @egggaming3969 3 года назад

    thank you for this tutorial. would like to ask though if you can help me with creatign a change password option using this too

  • @mrmago0277
    @mrmago0277 3 года назад

    4 year old and still brilliant, thanks so much for the help

  • @johnmwansa4180
    @johnmwansa4180 5 лет назад +1

    nice manthis only the man 4 which i never seen on youtube.you know how to work i like you men

  • @osraneslipy
    @osraneslipy 4 года назад

    Many thanks for this tutorial. It is astounding that someone can code at this level at such a young age. Keep it up!

    • @ayaanlandyn6790
      @ayaanlandyn6790 3 года назад

      I guess it is kind of randomly asking but does anybody know a good site to stream new series online?

  • @newsmix8659
    @newsmix8659 4 года назад

    Thank you for effectively articulating such a tricky and important part of php and mysqli programming!

  • @magnomani5865
    @magnomani5865 6 лет назад +4

    Hi! Do you know what Angels are?
    You´re one of them!
    Thanks alot...

  • @user-bq4xc2yy3m
    @user-bq4xc2yy3m 4 года назад

    Thanks! your guide was easy to follow. God bless!

  • @tahir4163
    @tahir4163 5 лет назад +1

    Man ur coding is smooth..

  • @loem1752
    @loem1752 6 лет назад

    good day sir . do you have a prepared statement way on inserting infos like that in register and checking also the hashed passwords ? :)

  • @ardarutkayvar9029
    @ardarutkayvar9029 5 лет назад +1

    Great tutorial for php and MySQL password hashing

  • @zbysiu100
    @zbysiu100 4 года назад

    Thank you very much.Very good tutorial. Regards!

  • @teodorastoyanova3259
    @teodorastoyanova3259 4 года назад

    Awesome video.Thank you so much.

  • @nurnajihahsyafinaznusuki9797
    @nurnajihahsyafinaznusuki9797 4 года назад

    Hi , does this password hashing still valid for PHP 7.4.6 ?

  • @charansadhu9896
    @charansadhu9896 5 лет назад +1

    I love u r voice its cool

  • @multi9jokker
    @multi9jokker 3 года назад +1

    brate hvala ti, pomogao si :D

  • @woutervermeersch9145
    @woutervermeersch9145 7 лет назад +1

    Ty very much for this tutorial!!, In you're video you mention that the salt principle has been depreciated ... But I never understood how that worked, could you elaborate?

    • @SenaidBacinovic
      @SenaidBacinovic  7 лет назад +2

      Thank you for the feedback! :)
      Basically, in the past, we were able to provide our own "salt" which actually is the secret key that will be used in the process of creating a hash, and each time we had to provide it in order to create or verify the hash.
      In the latest version of PHP it's suggested that we do NOT provide our own salt, and now by default, it will be automatically generated for us, and on that way, the salt is much stronger and more secure.
      I hope that this explanation is simple enough to help you better understand what it was. However, the best option would be to do some search on Google about password_hash function and read inside PHP manual about it. :)

    • @woutervermeersch9145
      @woutervermeersch9145 7 лет назад

      Ty very much, it's really clear for me right now :)

  • @heesel4089
    @heesel4089 5 лет назад +1

    Thanks, i didnt know how to hash passwords :)

  • @nortski78
    @nortski78 4 года назад

    Excellent tutorial, thanks. Subbed :)

  • @cd78
    @cd78 5 лет назад +1

    Thank you very much for providing the code for this......

  • @TheInimicus
    @TheInimicus 3 года назад

    6:31 - yy... why.... why did you start mixing parameters with view?

  • @fabrizioalpuche5984
    @fabrizioalpuche5984 2 года назад +1

    nice one, bro! thanks

  • @djb4programming
    @djb4programming 4 года назад

    Thank you so much for these tutorials which are the easiest absolutely, thank you again

  • @LeslieJoe1989
    @LeslieJoe1989 6 лет назад

    Great clarification thanks a lot. Boss, if you know more about other hashing password called Argon2. If yes, which one is more secure, Password_BCRYPT or Password_ARGON2?

  • @ДавидИванов-г3ж
    @ДавидИванов-г3ж 6 лет назад +5

    Can you do this tutorial in PDO and thanks for this tutorial

    • @SenaidBacinovic
      @SenaidBacinovic  6 лет назад

      Thank you, yes, for sure I can! :)

    • @DavidAshby1
      @DavidAshby1 3 года назад

      @@SenaidBacinovic Thanks for this tutorial. Have you managed to do the PDO tutorial for this as I am looking but so far not able to locate it? Thanks again.

  • @dankialageekette575
    @dankialageekette575 4 года назад

    Great tutorial bro ! You're a genius !

  • @charlesorafu490
    @charlesorafu490 4 года назад +1

    Thnak you very much Sir

  • @mathscollege9447
    @mathscollege9447 7 лет назад +1

    thank you for your tutorial , you are the best

  • @sahartal9503
    @sahartal9503 6 лет назад +1

    Great tutorial man! thanks

  • @nataliacarolinabertran6611
    @nataliacarolinabertran6611 6 лет назад +1

    Hello there! I really loved your videol. You have a new suscribir.
    I wanna to ask you if you can make a tutorial about a comment - answer system, similar to the one on Facebook or Twitter. I´m about to loose my head trying to figue it out how to do one of these. Thank you!

  • @user-ur3un7vq3l
    @user-ur3un7vq3l 6 лет назад +1

    Thanks man, your video is very helpful. I have subscribed;)

  • @mahmoodkashmiri
    @mahmoodkashmiri 6 лет назад +1

    Thanks senaid that was awesome!
    please make more videos on php oops with projects

  • @angelsantiago8190
    @angelsantiago8190 7 лет назад +6

    Do you have a tutorial on how to add the "Forgot Password?" (password reset). By the way thanks for the video, it was great.

    • @SenaidBacinovic
      @SenaidBacinovic  7 лет назад +4

      Thank you. Yes, I do have. It's one of the first videos on my channel, so I hope you will enjoy it: ruclips.net/video/PHf4RzPYiMo/видео.html :)

    • @angelsantiago8190
      @angelsantiago8190 7 лет назад +1

      Coding Passive Income thanks you.

    • @SenaidBacinovic
      @SenaidBacinovic  7 лет назад

      It's my pleasure. :)

    • @MJ-dm5hp
      @MJ-dm5hp 5 лет назад

      What is the name of the editor that you are using

    • @trinity6880
      @trinity6880 4 года назад

      @@MJ-dm5hp PhpStorm I think

  • @samnok3156
    @samnok3156 4 года назад

    Thank you for this Wonderful Tutorial, it helped me a lot how to use password_verify(), God bless you!!!

  • @thutasann6758
    @thutasann6758 5 лет назад

    thanks a lot this is very useful for me

  • @seeksteapoor
    @seeksteapoor 6 лет назад +1

    do you have a tutorial that "you will not access the home page unless you login first"
    ? and thanks for this video i now understand the other codes of my project...

    • @SenaidBacinovic
      @SenaidBacinovic  6 лет назад

      Just watch videos from this playlist: ruclips.net/video/1DgzTWr3F2I/видео.html

  • @developeraccount438
    @developeraccount438 6 лет назад

    Is bcript is better than salt? As you used in this video? Because i am scared there is many website have decrypt option even SHA1. Tell is your code decryptable?

    • @SenaidBacinovic
      @SenaidBacinovic  6 лет назад +1

      Anything can be decrypted, but it all depends how much does it cost (usually time) to decrypt. If you use the method shown in this video, it's going to be extremely hard to do so.

    • @developeraccount438
      @developeraccount438 6 лет назад

      Coding Passive Income I am perday open youtube for your php videos but from 3 month above you didn't upload any php videos. Is videos has been end in your stocks? You can't believe my written here but reality is 100% perday I prayed to lord that might you will uploaded any video here today. But you don't upload .
      Because in your video have purity, honestly, clearly. Now I am fan of your. I many time mail you from website, personal email, even here commented for upload anything in week or 2 weeks .. hope you will little think on it. @ your code fan..

    • @SenaidBacinovic
      @SenaidBacinovic  6 лет назад +2

      Thank you so much for nice words! At the moment I am starting my new software company and am extremely busy with launch and everything, but probably pretty soon I will start making new video tutorials and provide more help to my followers.

    • @desirocker9099
      @desirocker9099 6 лет назад

      lmao ahahahahxD

    • @developeraccount438
      @developeraccount438 6 лет назад

      Desi Rocker what you are saying, I can't get.. is this a type of language or emotions

  • @MG-wx8yx
    @MG-wx8yx 6 лет назад +1

    Thank you so much for this video.

  • @makkey7825
    @makkey7825 6 лет назад +1

    thanks you sir it give me a big idea how they encrypt the password

  • @therajuTheRock
    @therajuTheRock 6 лет назад +1

    working very nice tutorial

  • @mavyfaby
    @mavyfaby 6 лет назад

    Is the database information in the php can be seen by everyone using Inspect Element ??

    • @SenaidBacinovic
      @SenaidBacinovic  6 лет назад

      Only the data that you "echo" to the HTML from PHP can be seen via inspect element, everything else is not possible.

  • @carlapavia1234
    @carlapavia1234 4 года назад

    After the login is correct, how can you redirect to another page?

  • @JoseLuis-sr4xw
    @JoseLuis-sr4xw 5 лет назад +1

    Thanks you very much!

  • @malemonstir
    @malemonstir 4 года назад

    I tried registering the same users and same emails it still stores in my database, what do you do if you wanna tell them that the email already exist?

  • @MG-iv9lb
    @MG-iv9lb 3 года назад

    Thanks bro you help me

  • @blackestwhite
    @blackestwhite 7 лет назад +1

    Thanks a lot,
    Can you publish a video tutorial for Telegram Login wigdet?

    • @SenaidBacinovic
      @SenaidBacinovic  7 лет назад

      Pesare Goal yes, absolutely :)

    • @blackestwhite
      @blackestwhite 7 лет назад

      Have you ever use Telegram messanger?

    • @SenaidBacinovic
      @SenaidBacinovic  7 лет назад

      Pesare Goal Once, but didn't like it so I don't use it any more.

  • @desirocker9099
    @desirocker9099 6 лет назад

    This was a big help

  • @Win-yo5gb
    @Win-yo5gb 6 лет назад +1

    you are absolutely awesome :)

  • @holomode1357
    @holomode1357 4 года назад

    I got an error: It seems to work, but it doesnt add the data to the table. Why?

  • @desirocker9099
    @desirocker9099 6 лет назад

    PLEASE HELP
    on line 5 I had to use this:
    $connect =mysqli_connect( "localhost","root" ,"", "userdb");
    instead of what you did because of the error saying "unexpected ':' "
    also, I use:
    $sql = ("INSERT INTO users (name, email, password) VALUES('$name', '$email,' '$hash')"); now I dont get errors but there is no data getting stored into the database, it's all empty :/

  • @mdaftabalam788
    @mdaftabalam788 4 года назад

    What is your text editor name please reply soon sir

  • @vlogpit9945
    @vlogpit9945 5 лет назад +1

    Can anyone plz tell me use of real escape string

    • @SenaidBacinovic
      @SenaidBacinovic  5 лет назад +1

      We are sanitizing inputs to make sure we are safe if someone try sql injection etc.

  • @beps4440
    @beps4440 5 лет назад +1

    Thanks mate!

  • @doncorleon734
    @doncorleon734 7 лет назад +1

    good job thank u so much

  • @sandipshaw7268
    @sandipshaw7268 3 года назад

    not working in php 8.0.3
    any idea ?

  • @drcod3r329
    @drcod3r329 7 лет назад +1

    could you please make simple website using OOP just to c how the OOP works

    • @SenaidBacinovic
      @SenaidBacinovic  7 лет назад +1

      There is already a playlist in my channel where I am teaching OOP concepts. :)

    • @drcod3r329
      @drcod3r329 7 лет назад

      im waiting the part two :)

  • @asaadkhan3966
    @asaadkhan3966 2 года назад

    Thanks ❤️❤️❤️

  • @redvirus650
    @redvirus650 6 лет назад

    Sir I want to create a different hash which is similar to hashed password but not the password

    • @redvirus650
      @redvirus650 6 лет назад

      Please sir help me out in this problem

    • @SenaidBacinovic
      @SenaidBacinovic  6 лет назад

      I do not understand?

    • @redvirus650
      @redvirus650 6 лет назад

      For eg we have a password we have hash that password with Sha 256 and rolls are generated from it

    • @redvirus650
      @redvirus650 6 лет назад

      But with the help of those rolls and we can find the real password

    • @SenaidBacinovic
      @SenaidBacinovic  6 лет назад

      If you encrypt the password using the same way as I did in the video, it's almost impossible to find the real password from the hash.

  • @desirocker9099
    @desirocker9099 6 лет назад

    Is it salted?

  • @blogcorpo
    @blogcorpo 6 лет назад +1

    it's excellent...

  • @drcod3r329
    @drcod3r329 7 лет назад +4

    how to select multiple input in 5:30

    • @SenaidBacinovic
      @SenaidBacinovic  7 лет назад +4

      I just manually select "input", and then on my keyboard pressing "ALT+J" to select the next occurrence of that same string. However, this shortcut is only available in PHPStorm. In Sublime Text it's CTRL+D. I am not sure about others... :)

    • @drcod3r329
      @drcod3r329 7 лет назад +2

      fixed thank you a lot im using phpstorm alot better than sublime and really helpful

    • @SenaidBacinovic
      @SenaidBacinovic  7 лет назад +1

      Amazing, that's a great choice! :)

  • @denmlak81
    @denmlak81 5 лет назад +1

    Hvala, thnx :)

  • @desirocker9099
    @desirocker9099 6 лет назад

    Nothing worked . I got tons of errors on multiple lines. My php version is 7. PLEASE HELP

  • @tahir4163
    @tahir4163 5 лет назад +1

    New suscribe

  • @dasmaffin1633
    @dasmaffin1633 6 лет назад

    It doesn't work I always get the message that the password is wrong.
    first of all the line $data = $sql->fetch_array; completely rapes the entire code

  • @truthlover0888
    @truthlover0888 5 лет назад

    thanks

  • @mgedier
    @mgedier 4 года назад

    Thank you, you helped me a lot!
    Just an advice. Try to be more confident with your english, you speak too flat and too slow, try to be more expressive.
    Pactise more and you'll see how you get better and better with your speech. Go ahead. Nice job!

  • @YoussefARRASSEN
    @YoussefARRASSEN 5 лет назад

    legends use ubuntu

  • @srinivasaraoyp3640
    @srinivasaraoyp3640 Год назад

    Thank you for this tutorial.

  • @dejenedemissie5604
    @dejenedemissie5604 4 года назад

    thank you very much!