Encrypt an excel file with Password

How do i encrypt an excel file with password from UiPath (without using third party)

I’ve tried to search and tested some solutions provided on forums, they are not what i wanted (something like the below pictures)

image

image

Hi @TyraS

Check out the XAML file and Official documentation

Regards
Gokul