Тёмный

Encrypt and Decrypt Data Securely in PHP: OpenSSL, Sodium & defuse/php-encryption 

Dave Hollingworth
Подписаться 26 тыс.
Просмотров 2,3 тыс.
50% 1

Опубликовано:

 

10 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 18   
@dave-hollingworth
@dave-hollingworth 5 месяцев назад
Thank you for watching! Please consider supporting my channel: ☕ ko-fi.com/davehollingworth
@sujalkhatiwada2267
@sujalkhatiwada2267 5 месяцев назад
Would love to see something like Building a Microservice Using Symfony Framework and Deploying the application which is microservice-based.
@dividsky
@dividsky 5 месяцев назад
quick question : the key in defuse/php-encryption, is it always valid? or we must regenerate one after X times ?
@dave-hollingworth
@dave-hollingworth 5 месяцев назад
@@dividsky As long as you keep the key safe, there's no reason it wouldn't remain valid.
@longrolstral
@longrolstral 3 месяца назад
That's nice. Thank you. One of the next steps in my PHP learning project is to encrypt data on a database for user information, such as e-mail addresses.
@efbYouTube
@efbYouTube 5 месяцев назад
TY Dave! yr vids r ALWAYS appreciated!!
@nadergad8725
@nadergad8725 5 месяцев назад
Thank you.
@devhenry9054
@devhenry9054 5 месяцев назад
Where should we use this thing in real life practical application?? For session?
@dave-hollingworth
@dave-hollingworth 5 месяцев назад
No, if you're using sessions, use the built-in session handing in PHP. You would use this if you wanted to encrypt some data when storing it, for example if you develop an API that has users, each with an API key. In the same way that we store password hashes, you might store the API key encrypted in the database so that if the database is compromised, they don't have the plaintext API keys.
@DukeBerserkerTheFury
@DukeBerserkerTheFury 5 месяцев назад
What about a course about security in php and db? Some senior devs asked me all these stuff while interviewing me
@kuthub1989
@kuthub1989 5 месяцев назад
is this things defalutly implemented in frameworks like laravel?
@crazyingenieur3277
@crazyingenieur3277 5 месяцев назад
For those who are new to encryption, please not that encryption alone is not enough, typically. You also need to authenticate which guarantees that when decrypt the ciphered text, you get the original text "Hello world!" not some gibberish text. Ckeck out these 2 sodium functions for example: sodium_crypto_aead_xchacha20poly1305_ietf_encrypt sodium_crypto_aead_xchacha20poly1305_ietf_decrypt
@chriswinslow
@chriswinslow 5 месяцев назад
Great video on encryption. When encrypting data using PHP, do you know if the encrypted data be decrypted using other languages? Say in JS, C#, C++ etc? Thanks
@dave-hollingworth
@dave-hollingworth 5 месяцев назад
Thank you! Good question. I suppose if the same algorithm were used, along with the same key and nonce / iv, then in theory you should be able to decrypt using a different language. I'll give it a try when I get a minute, it would be interesting to know!
@ruamtauzla
@ruamtauzla 5 месяцев назад
Thx! Can you show how to encrypt and decrypt using PGP keys? The goal would be to send encrypted /signed emails automatically. Would love to see a tutorial how to retrieve the recipients key and use it for it.
@dave-hollingworth
@dave-hollingworth 5 месяцев назад
Thank you for the idea, noted!
@nulljeroka
@nulljeroka 5 месяцев назад
Good video. Nicely done.
@truthteachers
@truthteachers 5 месяцев назад
Hi Dave, still waiting for yr full course in CI4 Shield. Its now 1.2.
Далее
Symmetric Encryption With OpenSSL
9:36
Просмотров 16 тыс.
Stop using APT
9:56
Просмотров 518 тыс.
The Untold Story of VS Code
12:42
Просмотров 10 тыс.
Use Composer to Easily Manage PHP Packages
15:40
Просмотров 4,9 тыс.
All Rust string types explained
22:13
Просмотров 169 тыс.
Best Ways to Encrypt Passwords, Keys, & More with PHP
11:10
Шифрование данных на PHP
30:32
Просмотров 9 тыс.
15 Python Libraries You Should Know About
14:54
Просмотров 387 тыс.