Encrypt Files and Strings with Python? (Symmetric Encryption)

preview_player
Показать описание
🖼Subscribe to our Channel!
-------
In this video, you will learn how to encrypt and decrypt data and strings in Python.
This is Part I: Symmetric encryption with the cryptography library in Python.
For more information, visit us on:

in this video we're going to talk about encryption which is really important today when
managing certain data and thankfully
there are libraries available for python
to handle encryption so in this video,
we're going to learn how to encrypt text
and files in python. First, a quick
primer on encryption. In general before
we begin there are basically three types
of encryption; symmetric encryption has a
single key that is shared between two or
more people think of the key is the
password. Symmetric encryption is great
for encrypting files and large amounts
of data quickly. Asymmetric encryption
has two keys; a public and a private key
and there's a relationship between the
two keys that allow you to encrypt with one key
and decrypt with the other. This is
ideal for transmitting data or, when
managing keys is difficult. Finally,
there's a one-way hash which does not use keys - it only encrypts and does not
decrypt. So then, each type of encryption
specializes in a particular function but
they are often used together in the
cipher suite in this video we're only
going to look at symmetric encryption
with the Python encryption library. We will look at the other types in future videos from this series
Рекомендации по теме
Комментарии
Автор

Nice video man very helpful to undertand symmetric encryption

guyallo
Автор

Great video and I love how straight forward and clear it is! Do you have any videos on how to work with GPG encryption with python?

adambarrett
Автор

Can someone explain this error "ValueError: Fernet key must be 32 url-safe base64-encoded bytes"? and why do I get this even though I am following the tutorial line by line .

enigineeredreviews
Автор

Font size of code it too small for me to see :(

MPG
Автор

Amazing video! liked and subscribed.

I have a question, last week I had a homework from my school about web dev, it was to make a simple form > ask user for some personal basic info > encrypt the data and save the info encrypted in a DB > the user can later search for data, so it needs to be decrypted.

The approach I used was to create a column in my DB "encrypt_key" and save there every key that is generated for every new entry.

I know its just a basic exercise but this is not the best way to save a key right? What are some good practices to save the keys?

Thank you so much!

chileseco
Автор

Which Software you Used for this programming. I'm Using Anaconda3 Spyder, Your Code didn't run on that software.

noorularfeen
Автор

Hey Paul, Can you confirm if this is AES128 or AES256 encryption? And how can you change between the two?

tonyhawk
Автор

how can i encrypt files that are in a directory

crazex
Автор

Sir, can u make tutorial to encrypt with Symetric key using AES using PyCrypto Library? and can encrypt many file extension? I've tried to encrypt some file, but it's only work for .txt file, and when i encrypt the image file or except of .txt, the Decrypted file is always Corrupted

erikandribudiman