SecureLink.Shortener 1.0.0

dotnet tool install --global SecureLink.Shortener --version 1.0.0                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local SecureLink.Shortener --version 1.0.0                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=SecureLink.Shortener&version=1.0.0                
nuke :add-package SecureLink.Shortener --version 1.0.0                

ShortUrl

A secure and feature-rich URL shortening library with support for:

  • Secure random short codes.
  • Tamper-proof HMAC validation.
  • URL expiration.
  • Click count analytics.
  • Lightweight and scalable design.

Installation

Install via NuGet Package Manager: dotnet add package ShortUrl

bash Copy code

Usage

using ShortUrl;

var shortener = new UrlShortener(\"YourSecretKey\");
string shortCode = shortener.ShortenUrl(\"https://example.com\", DateTime.UtcNow.AddDays(30));
string? originalUrl = shortener.ResolveUrl(shortCode);


## **Step 3: Build the Package**

Run the following command in your project directory to build the NuGet package:
```bash
dotnet pack
dotnet nuget push bin/Release/ShortUrl.1.0.0.nupkg --api-key oy2fl7l4qe5dbusi24taja4qkj5ang3uzmqwopzoly22p4 --source https://api.nuget.org/v3/index.json
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
1.0.0 116 1/4/2025