add encryption support for params