document encryption proof fix