Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions NuciText.Obfuscation.UnitTests/NuciTextObfuscatorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ public void GivenAValidString_WhenObfuscating_ThenTheResultHasBeenObfuscated()

[Test]
[TestCase("ciocolatǎ albă", "ciocolată albă")]
[TestCase(
"Soldul total al boților de Profi Bot Server (Hori) a fost măsurat la 573.29 RON",
"Soldul total al boţilor de Profi Bot Server (Hori) a fost măsurat la 573.29 RON")]
public void GivenAnObfuscatedString_WhenDeobfuscating_ThenTheResultIsTheDeobfuscatedString(
string obfuscatedString,
string deobfuscatedString)
Expand Down
12 changes: 3 additions & 9 deletions NuciText.Obfuscation/NuciText.Obfuscation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,13 @@ public sealed class NuciTextObfuscator(int seed) : INuciTextObfuscator
{ '\'', "′´ʹ‘’" },
{ '\"', "”″" },
{ '|', "ǀ" },
{ 'ǀ', "|" },
{ '/', "⁄⧸" },
{ '\\', "⧵⧹" },
{ '-', "‐–" },
{ '+', "𖫵" },
{ '<', "ᐸ𖫬ⵦ" },
{ '>', "ᐳ" },
{ '3', "З" },
{ 'Ʒ', "Ӡ" },
{ 'Ӡ', "Ʒ" },
{ '3', "ƷЗӠ" },

{ 'Æ', "Ӕ" },
{ 'æ', "ӕ" },
Expand Down Expand Up @@ -176,8 +173,7 @@ public sealed class NuciTextObfuscator(int seed) : INuciTextObfuscator
{ '\'', "ʹ" },

//"0": "߀", // This can turn the text left-to-right
{ '3', "Ӡ" }, // The following look too different: Ʒ
{ 'Ӡ', "3З" },
{ '3', "ӠЗ" }, // The following look too different: Ʒ
{ '5', "Ƽ" },
{ '6', "бᏮ" },

Expand Down Expand Up @@ -219,9 +215,7 @@ public sealed class NuciTextObfuscator(int seed) : INuciTextObfuscator
{ 'g', "ɡց" },
//{ 'h', "հ" }, // "հ" looks like some arabic letter on iOS
{ 'h', "ᏂႹ" }, // "һ", // Confirmed to look quite different in many fonts
{ 'i', "Ꭵⅰ" }, // This might be a bit of a stretch
{ 'ı', "ɪ" },
{ 'ɪ', "ı" },
{ 'i', "Ꭵⅰıɪ" }, // This might be a bit of a stretch
{ 'ĭ', "ǐ" },
{ 'j', "ϳ" },
{ 'k', "κкκꮶ" },
Expand Down
2 changes: 1 addition & 1 deletion NuciText.Obfuscation/NuciText.Obfuscation.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<RootNamespace>NuciText.Obfuscation</RootNamespace>
<Version>1.1.0</Version>
<Version>1.1.1</Version>
<Description>NuciText Obfuscation</Description>
<Authors>Horațiu Mlendea</Authors>
<Copyright>Copyright 2026 © Horațiu Mlendea</Copyright>
Expand Down
Loading