You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
643 B
28 lines
643 B
using Infrastructure.Extensions;
|
|
using System;
|
|
|
|
namespace IdGen
|
|
{
|
|
internal class Program
|
|
{
|
|
private static void Main(string[] args)
|
|
{
|
|
if (args.Length > 0)
|
|
{
|
|
Console.WriteLine(args[0].Md5().Base64UrlEncode().Md5());
|
|
}
|
|
while (true)
|
|
{
|
|
var input = Console.ReadLine();
|
|
if (input == "q")
|
|
{
|
|
break;
|
|
}
|
|
else
|
|
{
|
|
Console.WriteLine(input.Md5().Base64UrlEncode().Md5());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |