How to verify encoded text
To very a encoded text must be initialize the Secret object with same constructor used when encode the text. Then you can verify is the text and the encoded text you have match. Also Secret provide methods to check is the secret and or the key is valid.
Verify Text
Method Secret.Verify(text, encoded_text);
Secret secret = new Secret("hello word");
bool result = secret.Verify("Hello Word again :)", "SGVsbG8gV29yZCBhZ2FpbiA6KQrT");
Console.WriteLine(result); //FALSE in this example
Verify secret, key or both
Methos Secret.Verify(secret);
Secret secret = new Secret("hello word");
bool result = secret.Verify("Hello word");
Console.WriteLine(result); //TRUE in this example
Methos Secret.Verify(key);
Secret secret = new Secret(1);
bool result = secret.Verify(1);
Console.WriteLine(result); //TRUE in this example
Methos Secret.Verify(secret, key);
Secret secret = new Secret("hello word", 1);
bool result = secret.Verify("Hello word", 1);
Console.WriteLine(result); //TRUE in this example