Bacteria can enter eggs through cracks in the shell. Never purchase cracked eggs. However, if eggs crack on the way home from the store, break them into a clean container, cover it tightly, keep refrigerated, and use within 2 days. If eggs crack during hard cooking, they are safe.