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 tightly, keep refrigerated, and use within two days. if eggs crack during hard cooking, they are safe.