diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..2fdc5c2 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright © 2024 NAME HERE + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/login.go b/login.go new file mode 100644 index 0000000..7264ce3 --- /dev/null +++ b/login.go @@ -0,0 +1 @@ +package whoisthis diff --git a/login/argon2id/main.go b/login/argon2id/main.go new file mode 100644 index 0000000..883e4b0 --- /dev/null +++ b/login/argon2id/main.go @@ -0,0 +1 @@ +package argon2id diff --git a/login/bcrypt/main.go b/login/bcrypt/main.go new file mode 100644 index 0000000..500b4be --- /dev/null +++ b/login/bcrypt/main.go @@ -0,0 +1 @@ +package bcrypt diff --git a/login/login.go b/login/login.go new file mode 100644 index 0000000..b2b458d --- /dev/null +++ b/login/login.go @@ -0,0 +1,9 @@ +package login + +type LoginResult string + +type LoginMethod interface { + Login() + Logout() + Recover() +} diff --git a/login/md5pepper/main.go b/login/md5pepper/main.go new file mode 100644 index 0000000..b17bc54 --- /dev/null +++ b/login/md5pepper/main.go @@ -0,0 +1,3 @@ +package md5pepper + +// an old historical implementation diff --git a/logout.go b/logout.go new file mode 100644 index 0000000..7264ce3 --- /dev/null +++ b/logout.go @@ -0,0 +1 @@ +package whoisthis diff --git a/mfa/totp/totp.go b/mfa/totp/totp.go new file mode 100644 index 0000000..90ccdb3 --- /dev/null +++ b/mfa/totp/totp.go @@ -0,0 +1 @@ +package totp diff --git a/mfa/webauthn/webauthn.go b/mfa/webauthn/webauthn.go new file mode 100644 index 0000000..d26e260 --- /dev/null +++ b/mfa/webauthn/webauthn.go @@ -0,0 +1 @@ +package webauthn diff --git a/recover.go b/recover.go new file mode 100644 index 0000000..7264ce3 --- /dev/null +++ b/recover.go @@ -0,0 +1 @@ +package whoisthis