codes.draeger.replayguard.core.SecurityStrategy.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of replay-guard-core Show documentation
Show all versions of replay-guard-core Show documentation
ReplayGuard is a security-focused library designed to enhance the security of communications between client applications and backend servers. This library addresses the critical need for secure data transmission, specifically targeting the vulnerabilities associated with replay attacks and unauthorized data interception.
The newest version!
package codes.draeger.replayguard.core
object Default {
const val SECRET = "secret"
const val MAX_AGE_IN_SECONDS = 10L
}
interface SecurityStrategy {
fun encrypt(data: String, key: String = Default.SECRET): String
fun decrypt(data: String, key: String = Default.SECRET, maxAgeInSeconds: Long = Default.MAX_AGE_IN_SECONDS): String
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy