Separate module for transformation. Working encryption. Used optional injection