How to encrypt and decrypt any format file (eg .pdf)

Upload my file as a text
And when I got
file to be convert in specific format
and open that file

Can it possible ???

I hope this guide will help you

I want to save my pdf in phone but using cloudinary with encryption please help

you want to encrypt or want to convert from text file to pdf?

Encryption alone mean, please refer this

Filey: Encode and Decode Files