MYSQL Database Encryption

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ย. 2024
  • I made this video for my database class at Full Sail. In it I talk about some basic salt usage and the built in aes_decrypt and aes_encrypt functionality of MYSQL.

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

  • @paulonyoutube
    @paulonyoutube 2 หลายเดือนก่อน

    A very good intro to basic decryptable encryption. 👍

  • @constantinefragkos4265
    @constantinefragkos4265 6 ปีที่แล้ว +12

    For values like the password in which you will never need to use the original cleartext again, using encryption is bad practice because if the key is compromised it could be reversed by an attacker. Instead for passwords, user for PHP password_hash and password_verify functions(and generally any bcrypt) to do this.

  • @Sigmatc24
    @Sigmatc24 2 ปีที่แล้ว

    Thank you very much, CAST function solves my problems. Also the salt addition is also huge. Have a nice day

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

    Very well explained thank you ..

  • @LewisMoten
    @LewisMoten 3 หลายเดือนก่อน

    If you use procedures, you can also pass in a pepper value that is stored outside of the database.

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

    Thanks you very much

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

    What about LIKE and ORDER BY using encrypted columns?

  • @KamleshKumar-po4qr
    @KamleshKumar-po4qr 4 หลายเดือนก่อน

    Where can I find this feature in MySQL database?

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

    Tom, when I set the type of user and password is varchar(), there is an error: Incorrect string value for columm user at row 1
    How to fix it ?

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

    why not encrypt the salt and decrypt whenever needed (you may use the same key or another.)
    BTW other comments are interesting.

  • @GHhurrduurr
    @GHhurrduurr 5 ปีที่แล้ว

    I get blob, but when I add cast as char it doesn't work...

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

    You have really explained well I would appreciate it and I have one question is if the password is same, and we are using salt so is this mean every salt must be unique key values because if its same it will give the same encryption, right?

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

      as i was watching this video i had the same question but there's an easy fix for that as the username is already unique u would use that as your salt

  • @Alex-mp1cs
    @Alex-mp1cs ปีที่แล้ว

    Sucks that the videos is unclear. But still a good lesson.

  • @RYALgt
    @RYALgt 5 ปีที่แล้ว

    Gracias amigo.

  • @iyyappanaeyil-qt2lg
    @iyyappanaeyil-qt2lg 10 หลายเดือนก่อน

    I can't see clear video beacuse no clear in words

  • @sameershaikh-yh8hk
    @sameershaikh-yh8hk 6 หลายเดือนก่อน

    Hey add some more video in mysql

  • @i.o4766
    @i.o4766 4 ปีที่แล้ว

    let's say you have a database of over 100 usernames and passwords. Is there a way we can apply encryption to everything in the column as opposed to individual one by one?

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

      update usernames set password=encrypt(password) where id > 0;

    • @i.o4766
      @i.o4766 2 ปีที่แล้ว +1

      @@svens3722 Thanks.

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

      @@svens3722 how to decrypt this please tell???

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

      @@anirudhrana489 just use the aes_decrypt function

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

    You should use hash or sha2 instead of encryption

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

      you could probably use both by encrypting the hash

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

      the video title says encrpytion, not hashing. he just want to explain encryption in this enviroment. not safety or anything else.