Mercurial > cgi-bin > hgweb.cgi > PassMan
diff src/main/kotlin/name/blackcap/passman/Database.kt @ 7:f245b9a53495
Efficiency improvements.
author | David Barts <n5jrn@me.com> |
---|---|
date | Tue, 20 Sep 2022 21:54:32 -0700 |
parents | 711cc42e96d7 |
children | 698c4a3d758d |
line wrap: on
line diff
--- a/src/main/kotlin/name/blackcap/passman/Database.kt Tue Sep 20 20:52:21 2022 -0700 +++ b/src/main/kotlin/name/blackcap/passman/Database.kt Tue Sep 20 21:54:32 2022 -0700 @@ -120,12 +120,6 @@ public fun ResultSet.getDecrypted(columnIndex: Int, encryption: Encryption) = encryption.decrypt(getBytes(columnIndex)) -public fun ResultSet.getDecryptedString(columnLabel: String, encryption: Encryption) = - encryption.decryptToString(getBytes(columnLabel)) - -public fun ResultSet.getDecrypted(columnLabel: String, encryption: Encryption) = - encryption.decrypt(getBytes(columnLabel)) - public fun PreparedStatement.setEncryptedString(columnIndex: Int, value: String, encryption: Encryption) = setBytes(columnIndex, encryption.encryptFromString(value))