mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-08-23 00:27:12 +08:00
32 lines
538 B
Dart
32 lines
538 B
Dart
/*
|
|
* SPDX-FileCopyrightText: 2019-2022 Vishesh Handa <me@vhanda.in>
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
class SshKey {
|
|
final String publicKey;
|
|
final String privateKey;
|
|
final String password;
|
|
final SshKeyType type;
|
|
|
|
const SshKey({
|
|
required this.publicKey,
|
|
required this.privateKey,
|
|
required this.password,
|
|
required this.type,
|
|
});
|
|
}
|
|
|
|
enum SshKeyType {
|
|
Rsa,
|
|
Ed25519,
|
|
}
|
|
|
|
abstract class Keygen {
|
|
Future<SshKey?> generate({
|
|
required SshKeyType type,
|
|
required String comment,
|
|
});
|
|
}
|