move user and customer files

This commit is contained in:
2024-08-17 21:40:04 -05:00
parent 7711fc14ed
commit 8673eb9869
11 changed files with 178 additions and 23 deletions

17
user.go Normal file
View File

@@ -0,0 +1,17 @@
package main
import (
m "go-nkode/models"
)
type User struct {
Username string
EncipheredPasscode m.EncipheredNKode
UserKeys UserCipherKeys
Interface UserInterface
Renew bool
}
func (u *User) DecipherMask(setVals []uint64, passcodeLen int) ([]uint64, error) {
return u.UserKeys.DecipherMask(u.EncipheredPasscode.Mask, setVals, passcodeLen)
}