| 12345678910111213141516171819202122232425262728 |
- import XCTest
- @testable import KeePass
- final class KeePassTests: XCTestCase {
- func testKDBX3() throws {
- let file = Bundle.module.url(forResource: "test-password-1234", withExtension: "kdbx")!
- let key = CompositeKey(password: "1234")
- let db = try KeePass.open(contentOf: file, compositeKey: key)
- print(db)
- }
- func testKDBX4() throws {
- let file = Bundle.module.url(forResource: "argon2-kdf-AES-cipher", withExtension: "kdbx")!
- let key = CompositeKey(password: "test")
- let db = try KeePass.open(contentOf: file, compositeKey: key)
- print(db)
- }
- static var allTests = [
- ("testKDBX3", testKDBX3),
- ("testKDBX4", testKDBX4),
- ]
- }
|