blob: ab5d6149c7f851ee328664e01d654a6bbafc0e5d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
package ganarchy.friendcode.util;
import java.nio.file.Path;
/**
* Helper to deal with private keys.
*/
public class KeyUtil {
/**
* Reads and decrypts a private key file.
*
* @param keyFile The path to the key file.
* @return The decrypted private key, or null if it doesn't exist.
*/
public static String readKeyFile(Path keyFile) {
return null;
}
/**
* Encrypts and writes a private key file.
*
* @param keyFile The path to the key file.
* @param key The private key.
* @return Whether writing the key succeeded.
*/
public static boolean writeKeyFile(Path keyFile, String key) {
return false;
}
}
|