PasswordHistoryItem.kt
1package com.peachpasswords.vault23import android.os.Parcelable4import kotlinx.parcelize.Parcelize5import kotlinx.serialization.Serializable67/**8 * One past password kept in [VaultEntry.passwordHistory]. A snapshot of the old9 * password is recorded whenever an entry's password changes, so the user can10 * reveal, copy, or restore a value they used before. Mirrors the browser11 * `PasswordHistoryItem` shape.12 */13@Parcelize14@Serializable15data class PasswordHistoryItem(16 /** The old password value, replaced by a newer one. */17 val password: String,18 /**19 * When this password stopped being current — the `passwordChangedAt`20 * (or `createdAt`) it carried at the moment it was swapped out.21 */22 val changedAt: Long,23) : Parcelable