29 lines
760 B
C#
29 lines
760 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.Remoting.Messaging;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Obfuz.ObfusPasses.SymbolObfus
|
|
{
|
|
public static class NameMakerFactory
|
|
{
|
|
public static INameMaker CreateDebugNameMaker()
|
|
{
|
|
return new DebugNameMaker();
|
|
}
|
|
|
|
public static INameMaker CreateNameMakerBaseASCIICharSet(string namePrefix)
|
|
{
|
|
var words = new List<string>();
|
|
for (int i = 0; i < 26; i++)
|
|
{
|
|
words.Add(((char)('a' + i)).ToString());
|
|
words.Add(((char)('A' + i)).ToString());
|
|
}
|
|
return new NameMaker(namePrefix, words);
|
|
}
|
|
}
|
|
}
|