dotnet-niceware-secure/README.md

36 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2017-03-27 05:30:51 +00:00
## Niceware for .NET
A .NET port of [Niceware](https://github.com/diracdeltas/niceware) for generating random-yet-memorable passwords. Each word provides 16 bits of entropy, so a useful password requires at least 3 words.
Because the wordlist is of exactly size 2^16, Niceware is also useful for converting cryptographic keys and other sequences of random bytes into human-readable phrases. With Niceware, a 128-bit key is equivalent to an 8-word phrase.
* Free software: MIT license
* Supports .NET Standard (core), .NET 4.6
2020-05-26 09:11:31 +00:00
**This C# port is a fork of [trpalmer's dotnet-niceware](https://github.com/trpalmer/dotnet-niceware)**
2017-03-27 05:30:51 +00:00
## Usage
To Install:
Install via Nuget package manager:
```
2020-05-26 09:14:07 +00:00
PM> Install-Package NicewareSecure
2017-03-27 05:30:51 +00:00
```
To generate an 8-byte passphrase:
``` c#
using niceware;
var passphrase = Niceware.GeneratePassphrase(8);
// result: ["unpeopling", "whipsawing", "sought", "rune"]
```
## Credits
2020-05-26 09:11:31 +00:00
Niceware for .NET is a port of [Niceware](https://github.com/diracdeltas/niceware) by [yan](https://diracdeltas.github.io/blog/about/)
2020-05-26 09:14:07 +00:00
**This C# port is a fork of [trpalmer's dotnet-niceware](https://github.com/trpalmer/dotnet-niceware)**