Censor for security reasons, e.g (6)
I believe the answer is:
redact
(Other definitions for redact that I've seen before include "Censor part of a text for security reasons" , "put into literary form" , "Prepare to publish" , "Edit and censor" , "Prepare for publication" .)