[CHANGE] Added old cipher implementation

This commit is contained in:
max
2025-10-23 19:27:07 +02:00
parent 9fdde5e756
commit 41f880cfef
8 changed files with 192 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
using System.Text;
namespace Manager.YouTube.Util.Cipher.Operations;
public class CipherSwap(int indexToSwap) : ICipherOperation
{
public string Decipher(string cipherSignature) => new StringBuilder(cipherSignature)
{
[0] = cipherSignature[indexToSwap],
[indexToSwap] = cipherSignature[0]
}.ToString();
}