I have been trying to password protect my word file using python but have been unsuccessful, I have checked the module msoffcrypto but it only supports decryption. I am not sure how it can be done ? if you guys have any lead on this please ping in chat. Thanks.
end result: I am expecting as when I open world file by clicking on it, it should ask for password.