All Projects → zhaopeiym → ShortURL

zhaopeiym / ShortURL

Licence: other
短网址生成器,演示地址:http://t.haojima.net/

Programming Languages

C#
18002 projects
CSS
56736 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to ShortURL

flutter scan
scanner qrcode in widget tree & decoder qrcode from image
Stars: ✭ 63 (+26%)
Mutual labels:  qrcode
ionic3-awesome
😃 ionic3自定义组件及常用例子 演示地址
Stars: ✭ 95 (+90%)
Mutual labels:  qrcode
short
URL shortening service. 高性能短链接服务。
Stars: ✭ 14 (-72%)
Mutual labels:  url
1y
A template project to build a short URL manager with Eleventy
Stars: ✭ 68 (+36%)
Mutual labels:  shorturl
escpos-coffee
Java library for ESC/POS printer
Stars: ✭ 172 (+244%)
Mutual labels:  qrcode
python
Build Python extension with Dynamsoft Barcode Reader.
Stars: ✭ 35 (-30%)
Mutual labels:  qrcode
uri-query-parser
a parser and a builder to work with URI query string the right way in PHP
Stars: ✭ 38 (-24%)
Mutual labels:  url
qrcode
A simple library for generating QR codes in C.
Stars: ✭ 23 (-54%)
Mutual labels:  qrcode
Zxing
🎫 Nepxion Zxing is a general code picture generator based on google zxing framework, support QR code and EAN code for file and byte array formats 基于Google Zxing的二维码/条形码创建和扫描组件
Stars: ✭ 26 (-48%)
Mutual labels:  qrcode
art-qr
JavaScript library to generate beautiful QR code in browser 艺术二维码
Stars: ✭ 19 (-62%)
Mutual labels:  qrcode
qrcode-parser
A pure javascript QR code decoding library, accept PNG File object, PNG image url, image base64.
Stars: ✭ 44 (-12%)
Mutual labels:  qrcode
otp-authenticator-webapp
A 'Google Authenticator' like Single Page Application
Stars: ✭ 69 (+38%)
Mutual labels:  qrcode
ips-qr-code
IPS QR Code Generator
Stars: ✭ 30 (-40%)
Mutual labels:  qrcode
js-qrcode
The library is for generating QR codes like SVG, HTML5 Canvas, PNG and JPG files, or text.
Stars: ✭ 35 (-30%)
Mutual labels:  qrcode
go-fsimpl
Go io/fs.FS filesystem implementations for various URL schemes
Stars: ✭ 225 (+350%)
Mutual labels:  url
qrcodescan.in
📠 A simple, fast, and useful progressive web application.
Stars: ✭ 144 (+188%)
Mutual labels:  qrcode
wifiqr
Create a QR code with your Wi-Fi login details
Stars: ✭ 207 (+314%)
Mutual labels:  qrcode
go-qs
A Go port of Rack's query string parser
Stars: ✭ 96 (+92%)
Mutual labels:  url
URL-Shortner-Bot-V2
A link shortner telegram bot version 2 with advanced features
Stars: ✭ 18 (-64%)
Mutual labels:  url
ruby-bitly
A simple bit.ly ruby client to shorten URLs, expand or get number of clicks on a bitlink.
Stars: ✭ 17 (-66%)
Mutual labels:  shorturl

短网址生成器

演示地址

http://t.haojima.net/

原理

  • 转短码:
  • 1、根据自增主键id前面补0,如:00000123
  • 2、倒转32100000
  • 3、把倒转后的十进制转六十二进制(乱序后)
  • 解析短码:
  • 1、六十二进制转十进制,得到如:32100000
  • 2、倒转00000123,得到123
  • 3、根据123作为主键去数据库查询映射对象

注意

由于NET Core(2.1)还是没有System.Drawing程序集,图片二维码等操作只有通过第三方编写的组件如ZKWeb.System.Drawing,但是在Linux环境需要依赖libgdiplus组件。

效果图

default

数据表结构

SET FOREIGN_KEY_CHECKS=0;

-- ----------------------------
-- Table structure for ShortURLs
-- ----------------------------
DROP TABLE IF EXISTS `ShortURLs`;
CREATE TABLE `ShortURLs` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `ShortURL` varchar(255) NOT NULL,
  `Url` varchar(255) NOT NULL,
  `CreationTime` datetime NOT NULL,
  `LastModificationTime` datetime NOT NULL,
  `AccessNumber` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=230 DEFAULT CHARSET=utf8;
SET FOREIGN_KEY_CHECKS=1;
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].