A hashing algorithm is a mathematical function that converts an input (or 'message') into a fixed-size string of bytes. The output is typically a 'hash code' or 'digest' which is unique to each unique input. In the context of email marketing, hashing is primarily used to secure sensitive information, like email addresses and personal details, ensuring that this data is adequately protected from unauthorized access.