Pregunta de entrevista de Capgemini

Give me the algorithm for bubble sort. Difference between hashing and encryption.