Skip to content

Time Hash Code (THC) is an Apple Shortcut designed to quickly generate unique IDs based on the current date and time. It uses the MD5 hashing algorithm to create these IDs.

Notifications You must be signed in to change notification settings

AT3K/Time-Hash-Code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 

Repository files navigation

πŸš€ Time Hash Code (THC)

❓ What is THC?

Time Hash Code (THC) is an Apple Shortcut designed to quickly generate unique IDs based on the current date and time. It uses the MD5 hashing algorithm to create these IDs.


βš™οΈ How Does THC Work?

  1. πŸ•’ Capture Current Date and Time: THC records the precise current date and time.
  2. πŸ”‘ Generate MD5 Hash: It creates an MD5 hash from this date and time.
  3. πŸ†” Extract Unique ID: The first 10 digits of the hash are used as the unique ID.

πŸ’‘ Use Cases

Use this unique ID in various scenarios, such as:

  • πŸ“‚ Creating database records
  • πŸ“œ Logging events
  • πŸ–‡οΈ Naming files uniquely
  • πŸ‘€ Generating usernames

πŸ’‘ Tip: Don’t like the generated ID? Simply wait a second and try again for a new one!


πŸ› οΈ How to Set Up THC

Follow these steps to set up THC on your iPhone:

  1. πŸ“₯ Import the Shortcut:
    Go to the Releases section of this repository to find the download link for the shortcut. Once downloaded, add it to your Siri Shortcuts app.

  2. πŸŽ›οΈ Set Up Action Button (Optional):
    If your iPhone has an Action Button, configure it for quick access:

    • Go to Settings β†’ Action Button β†’ Shortcut β†’ Time Hash Code (THC) v1.0.1

✨ Customizing the Length of the ID

You can configure the number of characters for the generated unique ID. By default, THC generates a 10-character ID, but you can customize this up to a maximum of 32 characters.

To adjust the length:

  1. Open Shortcuts.
  2. Find Time Hash Code (THC).
  3. Hold the shortcut and select Edit.
  4. Scroll down to the comment that says:
    β€˜Change the "10" below if you want a longer string. Maximum is 32.’
  5. Modify the "10" to your desired length (between 10 and 32 characters).

πŸŽ‰ Enjoy the simplicity and functionality of Time Hash Code (THC)!

About

Time Hash Code (THC) is an Apple Shortcut designed to quickly generate unique IDs based on the current date and time. It uses the MD5 hashing algorithm to create these IDs.

Resources

Stars

Watchers

Forks

Packages

No packages published