Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 202
  • Last Modified:

Send email out with customer ID encripted

Hello there,
I am working on a site, I want to let existing customer request a online login id to sign in later.
After they sign in, I will send out a email with a link that after click will enable the account automatically.
On that link I am thinking to place the encripted customerID, so when coming back I can decript it and enable the account in DB.
How can I do the encript for a customerID? and after they reply, how can I decript the customerID from the QueryString?
1 Solution
Do you want to create a "confirm registration process"???

If it's what you are looking for i will suggest you that.

1) When the user register keep a "uniqueidentifer id" (Guid) in your database
     PK_MySiteMembers (int)
     UniqueMemberId (uniqueidentifier), Guid

2) Instead of send this kind of confirmation email (because it's easily hackable cause the user just have to change a int number)
    Use the UniqueMemberId like this.  

Then from the confirmation page you can retreive your uniquemember from the guid and update member info.

The unique member id will identifier your user throw your database. Guid are unique, so it's a good way yo use when you want to have this kind of non hackable id.
Hope this help.
tomcattyyAuthor Commented:
I think that's the right way,  Thanks a lot.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now