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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T05:02:29+00:00 2026-06-06T05:02:29+00:00

What encryption scheme returns a short string? I want a small result less than

  • 0

What encryption scheme returns a short string? I want a small result less than 32 characters. I also want to be able to decrypt it back to the original plaintext. The purpose is email verification, where the code is sent by email. When the code is received the user logs in into the site and enters the code (or clicks on the link).

EDIT: DECRYPTION is important as after verification i need to relate two non related records

Thanks

  • 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-06T05:02:31+00:00Added an answer on June 6, 2026 at 5:02 am

    You’re talking about encryption but clearly need a hashing function. You can then relate the hash to any data model you want (whatever it is you want to ‘encrypt’ in this case) in a database. The hash is used like the key of a key-value store and can be completely random. The final size of an encryted string is always directly related to the size of the original string. Otherwise you’re probably confusing hashes and encryption.

    So a simple use-case:

    • A user registers into a website.
    • The registration controller creates a new record into the ‘pending_users’ table which has only 2 columns: user_id and random_key.
    • And email is sent to the user containing the value of the random_key which is exposed as a link to verification.php?key=$random_key

    When the user executes the verification.php controller, the controller checks for the presence of the $random_key in the pending_users table. If found, it removes the record and changes a flag in the users table (active_account = true for example). If not found an error is sent back to the user.

    Hope this helps,
    Cheers

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

Sidebar

Related Questions

I have to encrypt a string in my iPhone app. The encryption scheme is
I'm an encryption novice trying to pass some values back and forth between systems.
I want to use encryption algorithm available in .Net Security namespace, however I am
I'm looking for an two-way encryption algorithm to encode an array as a string,
I am creating an encryption scheme with AES in cbc mode with a 256-bit
Is there a public / private key encryption scheme that will not change a
I need an encryption scheme where the plaintext and ciphertext are composed entirely of
I am currently trying to make an implementation of the encryption scheme DES but
Should I break the text into chunks? Is RSA the wrong encryption scheme?
Assume a multi-party encryption scheme, similar to the answer to: Encryption with multiple different

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.