updated keypair data structure to have an name, passphrase and type

added generateKy to generate a key, currently only rsa
update generateRSA to return the Data for pub and priv, and take a custom size
bell animation better, slightly longer in total and easeinout
added new generate button hardcoded to a rsa 4096
added keytype to define key types (duh)
update getKeys to use the new keypair structure
This commit is contained in:
neon443
2025-06-30 16:28:58 +01:00
parent 94ad2fa661
commit 80b83644b4
8 changed files with 86 additions and 24 deletions

View File

@@ -184,9 +184,9 @@ class SSHHandler: @unchecked Sendable, ObservableObject {
func ring() {
Task { @MainActor in
withAnimation { self.bell = true }
try? await Task.sleep(nanoseconds: 250_000_000) // 250ms
withAnimation { self.bell = false }
withAnimation(.easeIn(duration: 0.1)) { self.bell = true }
try? await Task.sleep(nanoseconds: 300_000_000) // 250ms
withAnimation(.easeOut(duration: 0.1)) { self.bell = false }
}
}