By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,165 Members | 1,429 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,165 IT Pros & Developers. It's quick & easy.

Encode a string using Base64

P: n/a
Hello friends

I'm creating one application that will send content to another app using
HTTP connection. To authenticate my connection, I need to send a string with
the username and password encoded using Base64.

Dim username as String
Dim pass as String
Dim info_user as String
info_user = username + ":" + pass

and I need to encode info_user String using Base64. Can anyone help me how
can I do this, because I'm not sure how to do this.

Thanks for Help

Bruno
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Bruno" <Br***@discussions.microsoft.com> schrieb:
and I need to encode info_user String using Base64.


You can use 'Convert.ToBase64String' to get a Base64-string.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #2

P: n/a
Try this example:

http://www.planet-source-code.com/vb...3493&lngWId=10

Crouchie1998
BA (HONS) MCP MCSE
Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.