MarkNenadov / HaveIBeenKwned

A Kotlin interface to the haveibeenpwned.com API

Repository from Github https://github.comMarkNenadov/HaveIBeenKwnedRepository from Github https://github.comMarkNenadov/HaveIBeenKwned

HaveIBeenKwned

A Kotlin interface to the haveibeenpwned.com API (https://haveibeenpwned.com/).

To use V3 endpoints (for instances breaches()), you will need to subscribe to an API key and put it in haveibeenkwned.properties.

Service

interface HaveIBeenPwnedService {
    // these don't require an API key
    fun isPasswordPwned(password: String): Boolean
    fun isHashPwned(passwordHash: String): Boolean
    fun getVersion(): Int
    
    // these require an API (they are v3)
    fun breaches(emailAddress: String): List<Breach>
}

Releases

About

A Kotlin interface to the haveibeenpwned.com API

License:GNU Lesser General Public License v2.1


Languages

Language:Kotlin 100.0%