Fixed encryptionAlgorithm.js bug

Fixed problem with division operation having denominator as 0 and
thereby returning Infinity. Removed console debug messages.