/// <summary> /// /// </summary> /// <param name="cipherData"></param> /// <returns></returns> private int GetStrength(byte[] cipherData) { mAlgo = new StrengthAlgorithm(cipherData); int score = mAlgo.GetScore(); if (MAX_SCORE < score) { score = MAX_SCORE; } else if (MIN_SCORE > score) { score = MIN_SCORE; } return(score); }
/// <summary> /// /// </summary> /// <param name="strCipherData"></param> /// <returns></returns> public int GetStrength(string strCipherData) { mAlgo = new StrengthAlgorithm(strCipherData); int score = mAlgo.GetScore(); if (MAX_SCORE < score) { score = MAX_SCORE; } else if (MIN_SCORE > score) { score = MIN_SCORE; } return(score); }