ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Hashing/Encryption using Python

susukavi
7 - Meteor

Team,

 

I need to encrypt one column in my table.This table contains 5 million records.I am using python code to encrypt .Currently to encrypt 1 million records it takes more than 3 hrs.Given below my code used for encryption.

 

df = Alteryx.read('#1')
df['MaskedID'] = [hashlib.sha256(str.encode(str(i))).hexdigest() for i in df["ID"]]
df.head()
df = df.drop('ID' , 1)
Alteryx.write(df, 1)

 

Need your help in improving the run time.

 

P.S--I need to do this with alteryx only and also should use sha256 hashing

1 REPLY 1
BrandonB
Alteryx
Alteryx

Have you tried it in R? I just used the example in the post here and it ran in about 10 minutes for 10 million records on my computer (depends on your computer specs) : https://community.alteryx.com/t5/Alteryx-Designer-Discussions/How-do-i-SHA-256-Hash-and-other-hashin...

Labels
Top Solution Authors