Encryption algorithm for the design of information security course