Discrete analogues of dynamical systems and their applications for secure data transmission