decrypt a file in stringbuilder
-
HI, I encrypted a file and now I want to decrypt it but not in another file but in a stringbuilder. Thanks
-
HI, I encrypted a file and now I want to decrypt it but not in another file but in a stringbuilder. Thanks
You would decrypt it in memory, surely ? Why do you need to use a stringbuilder ?
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
You would decrypt it in memory, surely ? Why do you need to use a stringbuilder ?
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
hi,thanks for your answer. I need the information to put it in a stringbuilder. thanks again
-
hi,thanks for your answer. I need the information to put it in a stringbuilder. thanks again
You would need to decrypt it first, then pass the data to the stringbuider.
-- Always write code as if the maintenance programmer were an axe murderer who knows where you live. Upcoming FREE developer events: * Glasgow: Agile in the Enterprise Vs. ISVs, Mock Objects, SQL Server CLR Integration, Reporting Services, db4o ... * Reading: SQL Bits My website
-
hi,thanks for your answer. I need the information to put it in a stringbuilder. thanks again
OK, so you need a string. I'd imagine you'd get a byte array back from a decryption method ? You would use an Encoding class to turn that into a string, depending on if it's Unicode, ASCII, or something else.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
OK, so you need a string. I'd imagine you'd get a byte array back from a decryption method ? You would use an Encoding class to turn that into a string, depending on if it's Unicode, ASCII, or something else.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
thanks guys. I resolved the problem. Thanks again.