mirror of https://github.com/usbharu/Hideout.git
14 lines
320 B
Kotlin
14 lines
320 B
Kotlin
package dev.usbharu.hideout.service
|
|
|
|
import java.security.KeyPair
|
|
|
|
interface IUserAuthService {
|
|
fun hash(password: String): String
|
|
|
|
suspend fun usernameAlreadyUse(username: String): Boolean
|
|
|
|
suspend fun generateKeyPair(): KeyPair
|
|
|
|
suspend fun verifyAccount(username: String, password: String): Boolean
|
|
}
|