fvttcrypt

package module
v0.0.0-...-31a6362 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 7 Imported by: 0

README

I can not imagine anyone else needing this.

This module implements Caddy/Caddy GH http.authentication.hashes as per Caddy Module Namespaces.

FoundryVTT - some web app, for our purposes - has rudimentary user management - including storing hashed password. They use a pbkdf2 and sha512 based approach. I want a basic auth secured web server where my users use the same passwords for both my web server as well as the Foundry server. Caddy seems extensible, now we are here.

Foundrys password storage does not have an official API. Therefore this is unstable, experimental, not intended and generally a bad idea. Not enough to stop me, tho.

As of developing this, while the interfaces exist, there is no functionality within caddy to actually use anything other than bcrypt, even if a http.authentication.hashes complient module is loaded. So this project also motivated a PR on Caddy itself.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FvttCrypter

type FvttCrypter struct{}

Gizmo is an example; put your own type here.

func (FvttCrypter) CaddyModule

func (FvttCrypter) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (FvttCrypter) Compare

func (FvttCrypter) Compare(hashed, plaintext []byte) (bool, error)

func (FvttCrypter) FakeHash

func (FvttCrypter) FakeHash() []byte

func (FvttCrypter) Hash

func (FvttCrypter) Hash(plaintext []byte) ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL