call ctypes with password encryption