Implementation of classical encryption algorithms