File encryption ionic 3 :  I am looking for file encryption in ionic 3. I am using "libsodium-wrappers" for encrypting my files. I want to encrypt and save files irrespective of their file type. but getting errors each time. I have read a file as the string and encrypted it. But I am not able to get that file again as original one. I have tried readAsText and readAsArraybuffer from file plugin of ionic 3. 

is there any other way to get a file in string format and then again in file format with corresponding string?