Hashing in Python: Using Hashlib Library for Secure Hashing

  Рет қаралды 32,587

NeuralNine

NeuralNine

Жыл бұрын

Today we learn how to do hashing in Python using hashlib.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: www.neuralnine.com/books/
💻 The Algorithm Bible Book: www.neuralnine.com/books/
👕 Programming Merch: www.neuralnine.com/shop
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine.com/
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/NeuralNine
🎙 Discord: / discord
🎵 Outro Music From: www.bensound.com/

Пікірлер: 36
@shaddwatson2673
@shaddwatson2673 8 ай бұрын
This tutorial is very clear and concise - and no fluff. You are a go to resource whenever I need to quickly learn any new concept!
@Ruostesieni
@Ruostesieni 9 ай бұрын
I wanted a create a cool little software for my PhD research, which automatically fetches data from a few external databases. Then I realized I would need to just enter my password into the script itself, so I decided to write a simple encryption script to encrypt said plain text password. THEN I realized it's stupidly easy to crack, so I scrambled the order of the encrypted password with a scrambling key and found it to be pretty easy to crack too, since the key is stored locally. Now I've reached the point that I'm studying about hashing, salting and peppering and found my way here, even though my field of study has NOTHING to do with cryptography or computer sciences. Man, what a journey, and all in the span of like two hours.
@deleted7023
@deleted7023 Жыл бұрын
These videos are worth gold. 👌🏻🙏🏻
@KunalsinhSolanki
@KunalsinhSolanki 22 күн бұрын
Thank You for making my work easy by giving better explanation about hashing. God bless you! Keep it up!
@iwonaholoven5651
@iwonaholoven5651 Жыл бұрын
Thank you, very useful content
@nanoic2964
@nanoic2964 9 ай бұрын
This is really good, would you ever make a follow up video to include salting hashes?
@Ismail_kabir
@Ismail_kabir 2 ай бұрын
clear, simple and easy to understand
@yiannisnik-ew2hs
@yiannisnik-ew2hs Жыл бұрын
Thanks great video!!!
@Abhishekverma-ip7yx
@Abhishekverma-ip7yx Жыл бұрын
Very neat explanation....
@naderbazyari2
@naderbazyari2 Жыл бұрын
great video thanks a lot.
@acekiku5848
@acekiku5848 5 ай бұрын
This help me alot thank you
@sennlich
@sennlich 5 ай бұрын
Thank you ! 😉
@saadhamid5609
@saadhamid5609 Жыл бұрын
Why do you not have a udemy course?
@indorexian
@indorexian Жыл бұрын
​@@1-hasame here!
@pourix21
@pourix21 Жыл бұрын
tnks
@adamfatyga7977
@adamfatyga7977 10 ай бұрын
Everything - coll searching app!
@wh00ana
@wh00ana 11 ай бұрын
thank youuu
@kacperm2909
@kacperm2909 5 ай бұрын
good material ;)
@prompt_shark
@prompt_shark Жыл бұрын
Thanks big dog!
@Ramsey.001
@Ramsey.001 10 ай бұрын
Know how to compare 2 hashes ?, please help me
@zaphkiel3334
@zaphkiel3334 9 ай бұрын
Does anyone knows how to hash a hex value instead of a string?
@ATCraiger
@ATCraiger 5 ай бұрын
For verifying files, couldn't the checksum / SHA256 file also be changed to match the malicious program? Is that a more difficult thing to fake? It seems that if you're being targeted, it'd be easy to alter a text file if you can change what .exe they're downloading.
@NeuralNine
@NeuralNine 5 ай бұрын
Of course you need to make sure that the checksum you are comparing against is legit. It has to come from a trusted source. But then, changing the program so that it somehow ends up producing the same checksum, even though it has different code, is virtually impossible.
@oguzhantopaloglu9442
@oguzhantopaloglu9442 Жыл бұрын
Maybe you can make a video about Java's hashCode method that is inside Object class :)
@hibamallouhi2735
@hibamallouhi2735 9 ай бұрын
How did you get the correct_hash value? where is it in a download website?
@oneeyedphotographer
@oneeyedphotographer 5 ай бұрын
If its a password, isn't encryption the better choice? Or both. I want a secure hash of files of arbitrary size. I'm not finding a lot of help.
@GutsToCuts
@GutsToCuts 4 ай бұрын
encryption is designed to be reversed. hashing is a one way function that cannot be reversed. If you do not intend to reverse it, then you should use a one way function.
@Miguel-jo1jt
@Miguel-jo1jt Жыл бұрын
video foda
@kanchungtsang1401
@kanchungtsang1401 Жыл бұрын
very confusing
@xkisses92
@xkisses92 Жыл бұрын
bro calls python pythin 👽👽💀💀
@KhalilYasser
@KhalilYasser Жыл бұрын
Thank you very much ``import hashlib with open('Sample.txt', 'rb') as f: f.seek(0) print(hashlib.file_digest(f, 'sha256').hexdigest()) f.seek(0) print(hashlib.sha256(f.read()).hexdigest())``
@abdullahfall1517
@abdullahfall1517 Жыл бұрын
whats this mean explain please
@KhalilYasser
@KhalilYasser Жыл бұрын
@@abdullahfall1517 f.seek(0): This line resets the file's position back to the beginning so that we can read the file content again
@abdullahfall1517
@abdullahfall1517 Жыл бұрын
@@KhalilYasser oh, is that why you do it twice. thank you bro
SHA: Secure Hashing Algorithm - Computerphile
10:21
Computerphile
Рет қаралды 1,2 МЛН
Salting, peppering, and hashing passwords
8:56
mCoding
Рет қаралды 67 М.
Useful gadget for styling hair 🤩💖 #gadgets #hairstyle
00:20
FLIP FLOP Hacks
Рет қаралды 9 МЛН
RSA Private & Public Key Encryption in Python
12:42
NeuralNine
Рет қаралды 51 М.
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 286 М.
25 Nooby Pandas Coding Mistakes You Should NEVER make.
11:30
Rob Mulla
Рет қаралды 264 М.
Water powered timers hidden in public restrooms
13:12
Steve Mould
Рет қаралды 286 М.
Python Hash Sets Explained & Demonstrated - Computerphile
18:39
Computerphile
Рет қаралды 112 М.
The Algorithm Behind Spell Checkers
13:02
b001
Рет қаралды 409 М.
Hash Tables and Hash Functions
13:56
Computer Science
Рет қаралды 1,5 МЛН
Hashing Algorithms and Security - Computerphile
8:12
Computerphile
Рет қаралды 1,5 МЛН
The Truth About Learning Python in 2024
9:38
Internet Made Coder
Рет қаралды 162 М.
iPhone 16 с инновационным аккумулятором
0:45
ÉЖИ АКСЁНОВ
Рет қаралды 10 МЛН
İĞNE İLE TELEFON TEMİZLEMEK!🤯
0:17
Safak Novruz
Рет қаралды 688 М.
Здесь упор в процессор
18:02
Рома, Просто Рома
Рет қаралды 434 М.
Частая ошибка геймеров? 😐 Dareu A710X
1:00
Вэйми
Рет қаралды 2 МЛН
Копия iPhone с WildBerries
1:00
Wylsacom
Рет қаралды 8 МЛН