예제 #1
0
파일: AesCommand.cs 프로젝트: zmjack/Dawnx
        public void Run(string[] args)
        {
            var conArgs = new ConArgs(args, "-");
            var aesKey  = conArgs[1] == "hex" ? AesKey.HexString : AesKey.Base64String;

            var aes = new AesProvider();

            Console.WriteLine($"New {aesKey.ToString()}:\t{aes.ExportKey(aesKey)}");
        }