Generating salts can be done through various methods, such as using a random number generator or relying on cryptographic libraries available in most programming languages. The key is to ensure that the salt is unique and unpredictable for each email address.