Skip to content

Fasjeit/StrobeNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StrobeNet

This repository contains an .NET implementation of the Strobe protocol framework. See this David Wong's blogpost for an explanation of what is the framework.

The implementation of Strobe has not been thoroughly tested..

This implementation is adaptation of StrobeGo by Davin Wong and Strobe python reference code for .NET platform.

Build and Test Status:

Windows/Linux build
AppVeyor build status

Install

Install NuGet packet:

dotnet core

dotnet add package StrobeNet

.NET Framework

Install-Package StrobeNet

Usage

See Wiki for documentation. Here is an example usage:

namespace Samples
{
    using System;
    using System.Text;

    using StrobeNet;

    class Program
    {
        static void Main()
        {
            // Create strobe object, setting init string and security
            var strobe = new Strobe("MyStrobe", 128);

            var messageByte = Encoding.ASCII.GetBytes("Hello gentlemen");
            strobe.Ad(false, messageByte);

            var prfBytes = strobe.Prf(16);
            Console.WriteLine(BitConverter.ToString(prfBytes).Replace("-", ""));
        }
    }
}

About

Readable Implementation of Strobe in .NET

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages