windows runtime - CryptographicBuffer.ConvertStringToBinary outputs a string rather than "binary" -


i'm using simple method save string:

public static async void savestringasync(string stringdata, string filename) {     storagefolder localfolder = applicationdata.current.localfolder;     storagefile file = await localfolder.createfileasync(filename, creationcollisionoption.replaceexisting);      ibuffer buffer = cryptographicbuffer.convertstringtobinary(stringdata, binarystringencoding.utf8);      await fileio.writebufferasync(file, buffer); } 

when open saved file in notepad, see string in full glory. under impression saving binary mean if open file in notepad, i'll see garbage , random characters.

i wanted see light obfuscation saving even though not security requirement (no passwords, sensitive data being saved of kind). there no way write out file show nonsense rather pure string?


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -