Encryption in Angular and Decryption in c# .NET Core web api using RSA. Secure Programming practice

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

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

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

    best turorial i see , thank you very much, you are the best for the clear details

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

    Nice one

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

    Thanks and Great Work....

  • @TheXxmedxx
    @TheXxmedxx 3 года назад +2

    Nice details.
    But https already does that for you. Also hacker can use the same encrypted data and send it to server and will be validated, he/she doesn't need to decrypt it.

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

      There are various ways to handle this. What you are telling is an advanced scenario not covered in this video.
      Well, the answer to your question is like one way is creating public & private key for each user there by maintaining e2e encryption

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

      @@TechnoSaviour advanced scenario to have an SSL certificate? Why are you reinventing the wheel? Do you have your production websites not using SSL? If that's the case, you must be sued.
      Also, you must know that encrypting and decrypting yourself is not a cheap operation. It involves certain amount of computation.

  • @dileepreddy3574
    @dileepreddy3574 4 года назад +2

    Thanks Sir. It really helped me.

  • @atmai3326
    @atmai3326 9 дней назад

    Can u do it with AES ?

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

    Dear very good your video, thank you for the time. Now my query is the following, the backend will return an encrypted data, as angular could decrypt said data, if for that it needs the private key. Some recommend to me that it be deployed to AWS in your context so that only the application can access it. Please can you help me with some ideas.

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

    Nice video..
    Make a video of jwt authentication via c# and angular..

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

    Where did you save your public key on Angular side ,so that publickey cannot be seen by hackers

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

      public key is allowed to be seen by hackers. they dont have the private key to decrypt it.

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

    How can we sign the request using private key and verify if on backend using public key?

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

      its the other way round, as its designed to work like that.
      Public key are supposed to be public in nature, so they shouldn't be used for decryption

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

    Why do we need to encrypt if https already does it for us?

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

    How did u create the private and public key?

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

      I used OpenSSL

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

      There is another video which explains how to use OpenSSL in windows

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

    Is this possible in java Springboot?

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

    I get below error for every request made after first request.
    "Message is too long for PKCS#1 v1.5 padding."

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

    Do we really need encryption, coz https will encrypt whole communication channel

  • @123rulerz
    @123rulerz 3 года назад

    Thanks

  • @tommavlaemynck4954
    @tommavlaemynck4954 3 года назад +5

    You dont need this with modern https. Your requests will alsways be encrypted. Just send your raw password to api, encrypt and if its correct send cookie(JSON web token) to stay logged in.

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

      What if the request goes through an API gateway before reaching you back end application? Payload criptography is very important.

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

      How tomma because need to encrypt in UI like Angular or Jscript

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

    Te amo, churrita! 🥰

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

    Worked but causing Cors error.

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

      In the startup file, I had written code to handle CORS