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

  • Home
  • SEARCH
  • 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 8662935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:51:25+00:00 2026-06-12T16:51:25+00:00

In implementing my site (a Rails site if it makes any difference), one of

  • 0

In implementing my site (a Rails site if it makes any difference), one of my design priorities is to relieve the user of the need to create yet another username and password while still providing useful per-user functionality.

The way I am planning to do this is:

  1. User enters information on the site. Information is associated with the user via server-side session.
  2. User completes entering information, server sends an access URL via e-mail to the user roughly in the form of: http://siteurl/<user identifier>/<signature: HMAC(secret + salt + user identifier)>
  3. User clicks URL, site looks up user ID and salt and computes the HMAC with the server-stored secret and authenticates if the computed HMAC and signature match.

My question is: is this a reasonably secure way to accomplish what I’m looking to do? Are there common attacks that would render it useless? Is there a compelling reason to abandon my desire to avoid a username/password? Is there a must-read book or article on the subject?

Note that I’m not dealing with credit card numbers or anything exceedingly private, but I would still like to keep the information reasonably secure.

  • 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-06-12T16:51:26+00:00Added an answer on June 12, 2026 at 4:51 pm

    One word (well, actually two) – Referer header.
    The next site your user goes to after visiting yours will see his credentials in this header. Moreover, the user will not be able to change his credentials after they have been compromised that way.

    The idea of username/password authentication is that it involves two separate pieces of information – a known user id and an unknown password that can be freely changed on per-user basis. In your system (apart from the Referer thing), there is one single password for all – the “secret.” I also suspect it will be reasonably easy to bruteforce the signature (since I know my user id) and recover the secret, rendering the whole system useless.

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

Sidebar

Related Questions

Im implementing a site with shopping cart features and want the user to be
I am implementing a shopping cart site. When the user add the item, it
Implementing Ajax requests in my rails 3 app has been one of the most
I am implementing a mechanism wherein every user who comes to our site is
I am working on implementing jplayer on my site and need to generate the
I am currently implementing a blog-like site using Ruby on Rails. Each Post has
We plan on implementing a WAP site using ASP.NET-MVC. Has anyone any experiance of
recently, while implementing Ajax Jquery on one the my site, throw strange 401 UnAuthorised
I'm implementing a site which has a search that can be executed via Controller
I'm running a drupal site and implementing esi support. So far it went ok

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.