Python |
|||||
Python - Hash
The Python hashlib package is a built-in library that provides a variety of hash functions for secure, one-way data transformation. Hash functions are essential in cryptography, data integrity, and other security-related applications. They take an input (or "message") and return a fixed-size string of bytes, typically a "digest" that is unique to each unique input. Even small changes to the input will produce a completely different output, making it difficult to reverse-engineer the original data from the hash.
Here's an overview of the Python hashlib package without examples:
NOTE 1 : All the examples in this page are written in Python 3.x. It may not work if you use Pyton 2.x NOTE 2 : All the examples in this page are assumed to be written/run on Windows 7 unless specifically mentioned. You MAY (or may not) need to modify the syntax a little bit if you are running on other operating system.
Regarding the definition of Hash (What is Hash ?), refer to IP Security : Hash page.
Examples
|
|||||