write custom python dda routine for exstream engine to cater encrypt and decrypt features

please let us know the steps to follow to build custom python dda routine for exstream engine to cater encrypt and decrypt features

prefer to routine in java/python