How to hash password in .NET

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ต.ค. 2024

ความคิดเห็น • 36

  • @samuelbaron6741
    @samuelbaron6741 ปีที่แล้ว +3

    It's perfect this video!!! Could you make a video on folder structures? That's would be a great help to me and others, your code is very clean!

  • @NoNameBack810
    @NoNameBack810 11 หลายเดือนก่อน +1

    Nice explanation, Thank you.

  • @TuCominek
    @TuCominek 10 หลายเดือนก่อน +2

    Keep good work Remik thanks for the video❤

  • @Tamer_Ali
    @Tamer_Ali ปีที่แล้ว +2

    Thanks a lot for that useful video 👍.
    Could your create a video tutorial of how to Encrypt and Decrypt data or QueryString value without using IDataProtector?
    Because IDataProtector has a limited life time
    and also because url coding cause decrypting issue with encrypted querystring value

    • @remigiuszzalewski
      @remigiuszzalewski  ปีที่แล้ว

      Thanks 😊 I was thinking about that topic for one of my future videos. Sooner or later it will be covered for sure!

  • @lighr6886
    @lighr6886 7 หลายเดือนก่อน

    That was a really great video, by any change there is a video where you created that whole dependency injection container

    • @remigiuszzalewski
      @remigiuszzalewski  6 หลายเดือนก่อน

      Thanks for the feedback 😁 You can check out how I built .NET 8 Web API with similar separation of dependencies in layers:
      th-cam.com/video/g3is3wQK70Q/w-d-xo.html

  • @frimen310
    @frimen310 4 หลายเดือนก่อน

    Very useful. Thanks! :)

  • @SocialExde
    @SocialExde ปีที่แล้ว

    Great Video, thanks. Can you tell me, which column type your HashedPassword-Column in users-table has?

    • @remigiuszzalewski
      @remigiuszzalewski  ปีที่แล้ว

      Thanks Deepert 😁. In my case it is normal varchar that was converted from the string type in c#

  • @mau9175
    @mau9175 ปีที่แล้ว

    thank you!

  • @BlackSkorpion123
    @BlackSkorpion123 11 หลายเดือนก่อน

    Why did you fill in the value of the Password Hasher fields in this form: "128/8"?

    • @remigiuszzalewski
      @remigiuszzalewski  11 หลายเดือนก่อน

      It’s actually 16. I wanted to show that it came from 128 bits / 8 = 16 bytes of the SaltSize (which is recommended) ☺️

  • @robgreene3956
    @robgreene3956 ปีที่แล้ว

    In the past, I have used a subset of the user email as part of the password. I did not need a separator between the salted part and the hashed password. In your opinion, how would my method compare to yours?

    • @remigiuszzalewski
      @remigiuszzalewski  ปีที่แล้ว

      I think that it does not matter. If you were able to normally retreive plain password after storing it that way then it is totally fine!

    • @marcmcconnell
      @marcmcconnell ปีที่แล้ว +1

      @@remigiuszzalewski Except when the user needs to change their email address you will then need to rehash the password. That might be okay but it does mean the encrypted password will change whenever the email does.

  • @jafetfigueroa9796
    @jafetfigueroa9796 8 หลายเดือนก่อน

    thanks for your help I needed a video like this, May you make a video JWT authentication?

    • @remigiuszzalewski
      @remigiuszzalewski  8 หลายเดือนก่อน

      Thanks a lot! Of course in the future there will be a video about JWT Auth

  • @binojdaniel7
    @binojdaniel7 ปีที่แล้ว

    What does your jwtGenerator do? can you share info about that?

    • @remigiuszzalewski
      @remigiuszzalewski  ปีที่แล้ว

      Hi Daniel, jwtGenerator is creating a JSON Web token (JWT) after the successful login in order to return it to the client. In that manner he will be authenticated based on that token when calling an endpoint that is marked as [Authorize] in our API

    • @binojdaniel7
      @binojdaniel7 ปีที่แล้ว

      @@remigiuszzalewski Can you go over the JWT and authorization code too in a video?

  • @Farhan-ks2fq
    @Farhan-ks2fq 8 หลายเดือนก่อน

    this great video, but do you have explanation for JWT in .netcore dudee ?

    • @remigiuszzalewski
      @remigiuszzalewski  8 หลายเดือนก่อน +1

      Thanks 😁, for sure in the future I will create a video about JWT/other types of Auth

  • @98pawi
    @98pawi ปีที่แล้ว

    🔝

  • @veniamingi2809
    @veniamingi2809 ปีที่แล้ว

    can you explain, why u don t write SaltSiza = 16??

    • @remigiuszzalewski
      @remigiuszzalewski  ปีที่แล้ว +2

      It was just left as a reminder, that generally it came from 128 bits 😁

  • @rs.wright
    @rs.wright ปีที่แล้ว

    While trying to verify my hashed password against the plaintext password, I was getting an error that the hashed password contained a malformed base64 string. Took me an hour or so to realize that I set up the password column in the db to only accept 50 characters... Hope someone else can learn from this one. 😅

  • @mohammedidreesalikhan7341
    @mohammedidreesalikhan7341 ปีที่แล้ว

    Please share GitHub link for this project

  • @savage030_9
    @savage030_9 ปีที่แล้ว

    First