Dec 15, 2009
Ok, so I got everything working except for one thing. My program stores text in a settings files (which it saves to and encrypts to wonderfully), but it will only work once. For example, I type in an author, title and body, and click Publish, it publishes and is labeled with a "1.". Restarting the application, you get the desired effect, a decrypted string from the encrypted settings file, now publish another entry, this makes a new line with "vbNewLine" and then encrypts it, fine and dandy. Now apon opening the application again, you get an error stating "Invalid character in a Base-64 string.". What do I do?
View 6 Replies
Public Function psEncrypt(ByVal sInputVal As String) As String
Dim loCryptoClass As New TripleDESCryptoServiceProvider