Skip to content

Standardized Truncated url Format is a url conversion format that removes redundancies and makes links no longer look like links.

License

Notifications You must be signed in to change notification settings

stuffyerface/STuF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

Standardized Truncated url Format

NPM Downloads

Copyright © Stuffy 2024 All rights reserved.

Standardized Truncated url Format (STuF) is a url conversion format that shortens and obfuscates strings.

Contents

  1. The Purpose
  2. Supported Languages
  3. Applications Using STuF
  4. License
  5. Version

The Purpose

The purpose of STuF is to send and receive shortened, obfuscated links between End Users, allowing the End User to assume the responsibility of moderating their own consumption. The means by which strings are encoded and decoded is intentionally public and replicable. Users should not send or receive sensitive information as strings in STuF format as this does not hide data from anyone. Instead, this allows anyone who wants to take charge of what they do and don't want to see to decide on this for themselves, assuming responsibility unto themselves instead of the platform or forum they are using.

The benefits of using STuF over other URL shorteners include but are not limited to:
The lack of need to rely on the uptime of a shortened url database server;
Ability for offline string conversion;
Direct link translation without redirecting through another domain;
Immediate knowledge of the domain to be visited;
Strings disguised from the forum to which they are posted;

STuF transforms links into shorter strings that can only be understood by End Users who want to read them. As long as both the sender and the receiver have similar software as found in this repo, they can send and receive obfuscated links. This gives power to End Users and allows them to decide for themselves what they do and do not wish to see.

Encoding and Decoding Strings

Below is the process of converting strings to STuF. Decoding strings operates in reverse. Code for supported languages can be found in this repository.

New String starts with "l$"
Next character is "h" if link begins with "http://" or "H" if link begins with "https://"
If there is a .png, .jpg, .jpeg, or .gif file extension, append 1-4 accordingly, otherwise append 0
In the remaining characters of the url, tally the indices of all "." characters within the first 10 indices, and append it to the string, followed by "|" and remove them from the string
Replace all subsequent "." characters with "^"
Shift all characters following the "|" by 1 index along the string "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"

Supported Languages

Currently supported languages are listed below

Currently planned implementations are the following

  • Python3
  • Java
  • C/C++
  • TypeScript
  • Others Upon Request

Applications Using STuF

License

STuF operates under a modified version of the MIT License See License

Version

Current Version: 1.0.0

About

Standardized Truncated url Format is a url conversion format that removes redundancies and makes links no longer look like links.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published