Totlp 1.1.0

dotnet add package Totlp --version 1.1.0
                    
NuGet\Install-Package Totlp -Version 1.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Totlp" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Totlp" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Totlp" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Totlp --version 1.1.0
                    
#r "nuget: Totlp, 1.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Totlp@1.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Totlp&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Totlp&version=1.1.0
                    
Install as a Cake Tool

TOTLP.Net

A stateless, cross-platform, and time-synchronized password generator designed for dynamically rotating Linux passwords. Built on .NET Standard 2.0 to support both modern .NET Core / .NET 5+ and legacy .NET Framework applications.

NuGet version NuGet Downloads License: MIT


Features

  • Stateless & Decentralized: No database, centralized API, or state management required. Passwords are calculated dynamically using time and a master key.
  • Cross-Platform Consistency: Uses a custom deterministic Linear Congruential Generator (LCG) to ensure that the exact same password is produced regardless of the OS (Linux/Windows) or .NET runtime version.
  • Cryptographically Secure: Uses HMAC-SHA512 with dynamic truncation for core token derivation.
  • Full ASCII Passwords: Generates complex passwords using the entire printable ASCII range (from ! to ~), making them practically immune to brute-force attacks.

Installation

Install the package via NuGet Package Manager Console:

Install-Package Totlp

Or via the .NET CLI:

dotnet add package Totlp


Quick Start

1. Generate a Master Token

The master token acts as a shared secret between your application and the target server/infrastructure. You only need to generate this once per target.

using System;
using TOTLP.Net;

// Generates a cryptographically secure 16-character Base32 token
string masterKey = Totlp.GenerateToken(16);
Console.WriteLine($"Master Key: {masterKey}"); 
// Example Output: JBSWY3DPEHPK3PXP

2. Generate the Active Password

Generate the password that is valid for the current hour. Both the client and the server can independently compute this without talking to each other.

using System;
using TOTLP.Net;

// Computes a 24-character complex password for the current hour
string currentPassword = Totlp.GenerateCode("JBSWY3DPEHPK3PXP", 24);
Console.WriteLine($"Active Password: {currentPassword}");
// Example Output: dl)=Q`qOnT4htcDJC{EaM_


Technical Details

  • Time Step: Default rotation interval is 1 hour (3600 seconds).
  • Alphabet: Standard RFC 4648 Base32 alphabet is used for the master token generation.
  • Password Character Set: Printable ASCII range 33 to 126.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Security Disclaimer

IMPORTANT: This software is provided "as is" and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed.

Since this is a security-related tool (password generation), you are highly encouraged to thoroughly review the source code and adapt it to your environment's specific security policies before running it in a production environment. Under no circumstances shall the author(s) or copyright holders be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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 is compatible.  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.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.6.1

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.
  • net10.0

    • No dependencies.
  • net5.0

    • No dependencies.
  • net6.0

    • No dependencies.
  • net7.0

    • No dependencies.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 172 6/26/2026
1.0.0 133 5/15/2026