Member-only story

Simple Message hasher for Data Analysis

A quick dirty python script to mask your plain text messages

Nikita sharma
2 min readApr 23, 2019

I recently had to do some data analysis on some personal text based data. I didn't want to do analysis on raw/plain text and wanted a fair bit of data masking. I used a simple hasher for this purpose.

A hash is a one way encryption to mask data. More information on hashing here.

Here is the python script that I used to clean and hash my data.

Output

Here is the output of the script with and without the verbose flag. Typically you might want the verbose flag to be set as False. You can set it to True for debugging purposes.

This data is little more anonymised and is safer for analysis and sharing compared to plain text messages.

Hope this small post is useful.

--

--

Nikita sharma
Nikita sharma

Written by Nikita sharma

Data Scientist | Python programmer

Responses (2)