This algorithm can be used as base class for brute force alghorithm if use mapping to characters it's simple.