You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

EncryptorFactory.cs 441 B

10 years ago
12345678910111213141516
  1. 
  2. namespace Shadowsocks.Encrypt
  3. {
  4. public static class EncryptorFactory
  5. {
  6. public static IEncryptor GetEncryptor(string method, string password)
  7. {
  8. if (string.IsNullOrEmpty(method) || method.ToLowerInvariant() == "table")
  9. {
  10. return new TableEncryptor(method, password);
  11. }
  12. return new PolarSSLEncryptor(method, password);
  13. }
  14. }
  15. }