Some applications of quasigroups in coding theory and cryptography