private static Func <string, Func <string, Func <CryptoMode, string> > > ProcessFunc() => key => message => mode => { key = key.ToString().ToLower().Replace(" ", ""); key = DuplicateKeyFunc()(key)(message); return(AlgorithmUtils.Shift(message, key, mode, AlphabetDictionaryGenerator.Generate())); };
private static Func <string, Func <string, Func <CryptoMode, string> > > ProcessFunc() => key => message => mode => { var k = DuplicateKeyFunc()(key)(message); return(AlgorithmUtils.Shift(message, k, mode, AlphabetDictionaryGenerator.Generate())); };