public override string SecondStar() { var result = StringHash.HashAscii(256, input); return(result.ToString()); }
public override string FirstStar() { var result = StringHash.Hash(256, input); return(result.ToString()); }
public void SecondStarExample2(string input, string expectedHash) { var hash = StringHash.HashAscii(256, input); Assert.Equal(expectedHash, hash); }
public void FirstStarArrayReplace() { var newArray = StringHash.ArrayReverseReplace(new[] { 1, 2, 3, 4 }, 3, 2); Assert.Equal(new[] { 4, 2, 3, 1 }, newArray); }
public void FirstStarExample() { var hash = StringHash.Hash(5, "3,4,1,5"); Assert.Equal(12, hash); }