public static IPasswordHashAlgorithm Get(PasswordHashAlgorithmType algorithm) { switch (algorithm) { case PasswordHashAlgorithmType.SHA1: return(new SHA1PasswordHashAlgorithm()); case PasswordHashAlgorithmType.HMACSHA1: return(new HMICSHA1PasswordHashAlgorithm()); } return(null); }
public static IPasswordHashAlgorithm Get(PasswordHashAlgorithmType algorithm) => algorithm switch {