First implementation for symfony encryption