Skip to content

narfbg/Niceware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Niceware for PHP

Build Status

PHP port of npm: niceware (GitHub: diracdeltas/niceware)

Why?

I wanted to write something for fun. Until I put a more reasonable explanation here - assume EXPERIMENTAL status and use at your own risk!

Public API Reference

namespace Narf\Niceware;

class Narf\Niceware\Niceware {

	public static function generatePassphrase(int $size): string;
	public static function bytesToPassphrase(string $bytes): string;
	public static function passphraseToBytes(string $passphrase): string;

}

Note: The parameters types are not actually in the method signatures, but validated via is_string(), is_int() calls. This is because PHP's ugly strict_types declaration is non-enforceable.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages