internal bool CheckSecurityToken(string token) { if (securityTokenSeed==string.Empty) { return false; } string value = new EncryptedKeyProvider().GetEncryptedKey(securityTokenSeed); if (value==token) { return true; } else { return false; } }
internal static string GetEncryptedString(string plainText) { string EncryptionPassword = ServerMain.getInstance().EncryptionPassword; string EncryptedText = new EncryptedKeyProvider().GetEncryptedString(plainText, EncryptionPassword); return EncryptedText; }