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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:05:17+00:00 2026-05-16T00:05:17+00:00

I have designed an user interface for a tool where the user needs to

  • 0

I have designed an user interface for a tool where the user needs to enter a “Name” which is maximum 300 characters long, and the tool generates a text file (“Name”.txt) which is then uploaded to a “server” (Mainframe and Unix). I want to shorten the 300 character string into a uniquely identifiable 8 character string (because of issues primarily in mainframe), something like a tinyurl using some kind of hashing algorithm. I found a SHA1 implementation but the resulting string is 40 characters long. Can someone suggest a VBA implementation for the algorithm?

The requirement of the resulting string being 8 characters long is strict – my guess is that it should be doable given that we have a limitation on the size of the input string.

  • 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-16T00:05:18+00:00Added an answer on May 16, 2026 at 12:05 am

    I think Jens’s idea should work just fine.
    If truncating SHA-1 hash isn’t your thing, you could use a CRC-32 (32 bits ~ 8 ascii chars from 0..f). (you can try using this example)
    CRC-32 is less safe as far as collisions are concerned, but it’s up to you eventually.

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

Sidebar

Related Questions

I have designed a user profile form, a long form which is quite complicated.
I have designed a user interface for my computational software using swing (Java). I
I have designed a long form around two pages. After the user submits the
I have loop designed to validate the user input on a question, it was
I have designed this gui in netBeans which has a canvas , a couple
We have a designer creating a user interface for an application. The main window
I have some user controls which I want to specify properties and methods for.
Hello I have this problem with PyQt4-dev-tools that include: * a user interface compiler
I have designed a page where user can write messages and send within a
I have designed a C++ class that abstracts the user from trackball rotation, zooming

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.