12 lines
334 B
C#
12 lines
334 B
C#
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();
|
|
} |