Python FAKER Faking Hashes and UUIDS














































Python FAKER Faking Hashes and UUIDS



Faking Hashes and UUIDS
In the last article, we learnt about different functions that are used to produce fake numbers. We saw methods like random_int() and  random_digit() .

In this article, we will see how to generate fake hashes and uuids using the Python FAKER Library. So Lets Get Started.

Faking Hashes and UUIDS:

Faker support for dummy hashes and uuids.

UUID stands for Universally Unique Identifier. It's a 128-bit value used for a unique identification in software development. UUID is the same as GUID (Microsoft) and is part of the Distributed Computing Environment (DCE), standardized by the Open Software Foundation (OSF).

Let us see an example to understand about this.

Code:



The example generates three fake hash and one uuid values.

1) md5() :
This is a function which is used to create a Fake Hash Value.
2) sha1() :
This is a function which is used to create a Fake Hash Value.

3) sha256() :
This is a function which is used to create a Fake Hash Value.

4) uuid4() :
This is a function which is used to create a Fake UUID Value.

Output:



This is the output that we get by running the above given code. As we can see we have got 3 outputs of Hash and 1 output of UUID.

Conclusion:
In this article, we learnt about different functions that are used to produce fake Hashes and UUIDS. We learnt about functions like md5() , sha1() , sha256() and uuid4() methods.

In our next article we will learn about some more methods used to produce different fake outputs like Fake Internet data, Fake Date and Time, Fake XML Data.

Comments