ASP NET Core encryption and decryption example

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

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

  • @mankgwanyanetlaka5012
    @mankgwanyanetlaka5012 5 лет назад +3

    I've been wondering how to go about doing this. I was even thinking of using a GUID. Thank you so much, your videos are helpful.

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

    Great explanation! I could implement in Asp Net Core MVC ( .Net6) , just I have made some modification and it works properly! Many thanks!

  • @tothedust
    @tothedust 5 лет назад +11

    Sir do you have plan to teach us clean architecture in asp.net core?

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

    Thank you so much.One of my long time question has got answer.

  • @rsrodas
    @rsrodas 5 лет назад +4

    In case you have a notification system (different master key), sending links with Employes IDs, what would be the approach? Protect with a specific "RouteValue" on the emails and then do some kind of conversion to the right protected ID expected by the employees system?

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

    this guy is soooo awesome

  • @naveendagar2192
    @naveendagar2192 10 месяцев назад

    🎉nice explained sir ji

  • @Octopie18
    @Octopie18 5 лет назад +3

    Thanks for the video. The encrypted id seems rather long, I wonder if there are options we can pass to control the encryption output like max length, only numbers, etc.

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

    Hello Sir, how I can validate if the value is ok in the route value. for example if I change the route value I get this message "The provided payload cannot be decrypted because it was not protected with this protection provider." Thank you

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

    Very good Explanation sir..

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

    Hello sir, i have a question. In my application i need to generate the link dynamically in jquery and call the controller with some query string values. I want to encrypt the query string in url. How i can achieve this??? Please help. Waiting for your response.
    Thanks

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

    I don´t like to have to rename all areas of code where I´m using an ID. I think that must exist a faster and dinamic way to do this, may be to encrypting the Id inside the Proterty Id at Employee class. Thanks for Videos, you are amazing.

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

    That's very helpful video. But i'm wondering how can we hide/shorten the encrypted id on the url.

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

    This introduced another issue. If an invalid token is placed into the browser address field, the page crashes as protector.Unprotect will not be able to decrypt the token into a string that can be converted into an int. So additional error handling need to be in place.

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

    Sir,
    It's Amazing series so first thanks a lot to you.
    Question=> How to get value of CreatedBy or Modified by in Asp.net Core so Can you make one videos of it.

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

    Thanks for the master piece again. Can we use DP API encryption in asp net core application targeting linux?

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

    Decryption is working fine on same machine from which encryption occured. But the same code is not decrypting on another machine. Any idea what to do ?

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

    XM Lendinh tags last are missing while decoding

  • @MuhammadAhmed-ey7pf
    @MuhammadAhmed-ey7pf 2 года назад

    Nice Tutorial sir but Can We decrypt it from Angular
    ?

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

    Thanks

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

    Delete Employee was not applied in this series!!! could you make video for it!!

  • @VarunKumar-qd5wl
    @VarunKumar-qd5wl 4 года назад

    Thank You

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

    How to encrypt decrypt connectionString and use it

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

    👍

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

    how many more videos in this series?

    • @Bilox187
      @Bilox187 5 лет назад +2

      var maxVideoCount = System.Int64.MaxValue;

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

    Hi, I need your help.
    I could modify other user's information, even sensitive information also like password even though I use JWT web token.
    For ex:
    * Assume and let's take 2 users registered in ABCD website with the following emails:
    test1@abcd.com, test2@abcd.com
    * Now I logged in as Test1 user with his email and password as I expected I received a JWT token.
    * Then I suspected that, after I logged in with my token, am I able to change other user's details like password.
    * So I wrote a API function to change other user's password.
    * Then I called the API and passed the Test2 user's IdentityId, new Password WITH Test1 user's Token, as I suspected, the other user's values were changed.!
    I wonder!
    * I confirmed that by getting failed to login with Test2 user's old password. Yes! the new password worked!
    * What should I do to prevent a user to edit other users' values?
    I need your answer please.
    Regards,