From The Document Foundation Wiki
Redaction command in the Tools menu of Writer
Starting redaction in Draw (Redaction toolbar is in the green rectangle)
Screenshot while redacting a document in LibreOffice
Screenshot of a redacted document, finalized and exported as PDF