• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 205
  • 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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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