Adds decrypt payload function in securityManager