Advertisement
Guest User

Untitled

a guest
Jul 18th, 2017
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. string user = ConfigurationManager.AppSettings["username"].ToString();
  2. string pass = ConfigurationManager.AppSettings["password"].ToString();
  3.  
  4. string combo = user + ":" + pass;
  5. string password64 = Convert.ToBase64String(Encoding.UTF8.GetBytes(combo));
  6.  
  7. Response.Write(password64);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement