The setEncryption method in the API does not encrypt the binary file, only mark at database level the document as encrypted ( it is information about the status of the document, not an action over the document ).
Encryption feature requires an external tool https://docs.openkm.com/kcenter/view ...
