[CHANGE] Added old cipher implementation
This commit is contained in:
12
Manager.YouTube/Util/Cipher/Operations/CipherSwap.cs
Normal file
12
Manager.YouTube/Util/Cipher/Operations/CipherSwap.cs
Normal 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();
|
||||
}
|
||||
Reference in New Issue
Block a user