Add cipher support

Adding support for custom cipher configurations.