AES 256 GCM and ECDH | Authenticated Encryption and Decryption | End-to-end Encryption

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

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

  • @rohanranamagar1502
    @rohanranamagar1502 Год назад +2

    If bob and alice are different machine how can you access bobSharedKey ?
    Here you are using both in one file?

  • @blaze738
    @blaze738 4 года назад +5

    thank you for such a great playlist on end to end encryption!
    i was wondering what could be the best approach for encrypting a group chat as there will be a lot of users

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

      Well again use diffie Hellman

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

      consider group as a user, and sender are other user

  • @mukeshbagaria4089
    @mukeshbagaria4089 Год назад +1

    can you help me that which library can be used in flutter to implement ?

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

      This should be build inside flutter itself, I am not sure

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

    Thnk you so much for this video.. its really helpful.😍 Plz make video on AES_256_ECB encryption

  • @NikhilSharma-qk8sr
    @NikhilSharma-qk8sr 4 года назад +3

    How would you go about storing the messages in the database? if it is end to end encrypted the shared keys will change and you wont be able to view the past messages that are stored in the database (i.e. if you store the cipher text as is in the database). what would you suggest for saving messages in database? is it possible to store the messages in such a way that only the two parties like alice and bob can decipher the messages in database.

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

      Well u can store the cipher in db, since Bob Alice generated on a common shared key which they can use to decipher.

    • @NikhilSharma-qk8sr
      @NikhilSharma-qk8sr 4 года назад

      @@mafiacodes but wont the shared key change over time? all the control over the key generation is with client. the server cannot know. so when the app gets uninstalled and then installed again or something like that. wont the key change? how do you make the private keys persistent if the keys can only be generated in client and server cant know about it?

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

      See if server knows about the keys or u store them somewhere in outside the client then the whole purpose of end to end is deceived. For example whatsapp, fb messenger they use signal protocol where for every message they use 3 diffi Hellman - 3 key exchanges for a single message. If your interested read more about the signal protocol because that is what eventually you should use when makin a million dollar 💵 app. It’s open source by open whisper systems.
      As far as this goes you can use it for a simple project and the message will be e2e encrypted.

  • @syedwaseemahmed1749
    @syedwaseemahmed1749 6 месяцев назад

    In javascript how to do??

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

    Great, how do I do it in browser AND how to make it handle a ReadableStream?

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

      use elliptic curve library

  • @LucasLopes-hd1ms
    @LucasLopes-hd1ms 3 года назад +1

    Great video.

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

    How can I convert the same code in to Kotlin?

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

    Great video! Thx! Would you make a video that demonstrates the said Signal-E2EE?

  • @Aki2024.
    @Aki2024. 3 года назад

    Is wolfssl more secure than aes 256 gcm?

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

    I have a question. What's the recommended way to generate IV? I heard that using a 12 byte random string is not safe enough. Is there any other ways?

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

    The shared key you are using in this tutorial is 512 bit encrypted key right?

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

    I want to use 12 byte IV is it possible to do so?

  • @Anto-mi5pn
    @Anto-mi5pn 3 года назад

    How do you do this on the front end? One of the key points of E2EE is not to let your server know about the messages. So this has to happen completely on the client side, right?

    • @Cris-lg5iz
      @Cris-lg5iz 3 года назад

      This is my concern too...

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

    hey this is usch a great video i'm wondering if u can do a video about encryting and decryting a file using RSA algorithm

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

    I need this same algo in android . Can you help me in that. would be appreciated.

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

      yes I have that for android, but not planning to sell it 😃

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

      @@mafiacodes No worries. I did it myself. :D

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

      @@afnanhaider512haider7 can you let me know what you used for it?

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

    how do you run this now? need a video of you using this

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

      That’s what was explained here, just use ur server to exchange the public keys 🔑 and then u can use them to generate a shared secret.
      Subscribe like share

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

    In line 56 how the bobshared key is sent to an server

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

      By any mechanism you like, typically in request body. But only you need to share the bobs public key and not the shared key.

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

      @@mafiacodes so the bob_payload has the key??

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

      The payload which Bob recieved has three things namely the iv, encrypted msg and auth tag. So he used his decipher to get back the msg.

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

    You're a god. :3

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

      God is one and only one - I am a simple human being 😊