@Emil Thanks for the reply, the code lines I added in my post are what I found for vanilla implementation of cryptography, but it fails