The black codes were: laws that sought to regulate the lives of former slaves. codes of honor by which newly freed black americans lived. secret codes used by freed blacks in regions where the ku klux klan was strongest. a secret code combining elements of creole and pidgin english.