Finite Commutative Rings and Their Applications