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 6977299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:36:30+00:00 2026-05-27T17:36:30+00:00

I use IP, USERID, DATETIME to create security code in my web App. I

  • 0

I use IP, USERID, DATETIME to create security code in my web App. I want to know more information about how to create security code, e.g:

string str="192.168.0.1,myid,20121227,12345";

Then I encrypt a string:

string strC=encrypt(str);

Then string strC is my security code.

  • 1 1 Answer
  • 0 Views
  • 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-27T17:36:31+00:00Added an answer on May 27, 2026 at 5:36 pm

    Generally you use the good solution.sometime we need to know about content of our key, so as you did use a encryption method (because there is a decryption method for each encryption method)
    sometime we just need a key to assign it to our users , so in these cases we can use one-way algorithms like hash.Finally i say you use a good way but i have another offer for your solution(maybe you have keep this offer in your mind).

    change you encrypt /decrypt method like this :

    private string Encrypt (string str)
    {
    
    //Encryption str
    //...
    
    
    return HttpUtility.HtmlEncode(EncryptedStr);
    
    }
    
    
    private string Decrypt (string str)
    {
    
    str = HttpUtility.HtmlDecode(str);
    
    //Decryption str
    //...
    
    return DecryptedStr;
    
    }
    

    this will improve your solution and by these method you can use your key in query string variables

    Regard , Ali

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

Sidebar

Related Questions

How do I use regular expressions and search and replace to turn this [UserID]
I am trying to use it for Login page. if (Session[UserID] == null) Server.Transfer(/Account/Login,
We want to use the same user-id across all our dev tools, but this
Use case: I've just entered insert mode, and typed some text. Now I want
I want to create a table, which name something like : name_thisyear_thisweekofyear, e.g ->
'''use Jython''' import shutil print dir(shutil) There is no, shutil.move, how does one move
Use case: A does something on his box and gots stuck. He asks B
Use case: 3rd party application wants to programatically monitor a text file being generated
Use case: user clicks the link on a webpage - boom! load of files
use LWP::Simple; use Parallel::ForkManager; @links=( [http://prdownloads.sourceforge.net/sweethome3d/SweetHome3D-2.1-windows.exe,SweetHome3D-2.1-windows.exe], [http://prdownloads.sourceforge.net/sweethome3d/SweetHome3D-2.1-macosx.dmg,SweetHome3D-2.1-macosx.dmg], [http://prdownloads.sourceforge.net/sweethome3d/SweetHome3DViewer-2.1.zip,SweetHome3DViewer-2.1.zip], ); # Max 30 processes for

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.