Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 222887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:10:10+00:00 2026-05-11T19:10:10+00:00

Encryption is not my forté. I’m writing an application in Silverlight 3 which communicates

  • 0

Encryption is not my forté.

I’m writing an application in Silverlight 3 which communicates with a web service to authenticate users. The web service won’t necessarily be hosted under SSL. I’m trying to find a way to reversibly encrypt the user name and password before passing them which doesn’t rely on the key and salt being hard-coded into the Silverlight assembly. It doesn’t support RSA (or any asymmetric algorithm), so I can’t use a public key from the server.

Are there any patterns for doing this sort of thing?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T19:10:10+00:00Added an answer on May 11, 2026 at 7:10 pm

    RSA would really be the best way to go here, but indeed there’s no implementation in either the Silverlight 2 or 3 libraries. It’s something that really should have been added in my opinion, though it’s very unlikely to happen until Silverlight 4 now. Unfortunately, a custom RSA implementation is likely to be truly painful, so it’s not quite feasible I’d expect.

    Here is my proposed solution… It’s certainly not as simple as simply sending the public key from the server, but it should do the job securely still.

    1. Use the Diffie-Hellman key exchange algorithm to agree on a key to be used for later encrypted. This was designed to work over an insecure channel, so there are no problems here. See here for a C# implementation.
    2. Use some sort symmetric encryption with the key established by the Diffie-Hellman exchange to send the username/password over the connection. The server can then decrypt using the same key, which while known to both the client and server, are nonetheless unknown to any third party. The strength of your symmetric encryption algorithm should not in fact matter in this case. (Someone correct me if I’m wrong.) A simple XOR cipher should do the job in fact. It seems you could also use the AES standard, which is included in the System.Security.Cryptography namespace of the Silverlight BCL.

    Hope that helps. Let me know if you’re not clear on any of the points.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a test (not real) encryption function which takes a byte[] and
I want to know the list of all countries and the encryption standard not
We have an encryption service that we've exposed over net. tcp. Most of the
Im receiving the following error Name 'Encryption' is not declared. On Line If reader_login(password).ToString()
Is there a public / private key encryption scheme that will not change a
This is a custom encryption library. I do not know much about PHP's standard
Looking for built in encryption functions, not to hide the string from the clever
I heard some time that encryption and cipher are not the same thing, if
I'm new to this encryption thing, so i'm not realy sure how to format
Is there end-to-end voice encryption in GSM ? If not, is voice communication between

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.