Oxygen generators and CO2 scrubbers explained

Just how do they work?

Astronaut John Swigert holds a carbon dioxide scrubber made from parts found aboard the Apollo 13 spacecraft. An explosion in an oxygen tank forced the astronauts to abort their moon landing and find a way to keep their air breathable. Credit: NASA/Corbis via Getty Images