Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CAPICOM and line feed

Status
Not open for further replies.

graabein

Programmer
Oct 9, 2002
186
0
0
NO
Hi,

I've started using CAPICOM.DLL to encrypt and decrypt some database logins. When I encrypt the message with a secret key the encrypted text contains line feeds.

How do you suggest I counter this? I want the syntax of the INI-file to look like:

Database1=adjhsda8623r4y234iu23%¤")#=¤"&#"/
Database2=kjdfad+98y723)sdjah73y24hjnl%()&%)O

Cheers,
graabein

[elephant2]
 
Should I convert the encrypted string to another format and paste that in my INI-file and then convert back to string before I decrypt?
 
Problem solved.

I did a s = s & Format(Asc(Mid(sTemp, n, 1)), "000") where sTemp is the encrypted string and saved s in the INI-file.

On the decrypt side I simply did s = s & Chr(Mid(sTemp, n, 3)).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top