Skip to content

Commit

Permalink
just messing about
Browse files Browse the repository at this point in the history
  • Loading branch information
odds-get-evened committed Dec 21, 2021
1 parent 1b21e84 commit 0ab9b89
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ use : designate currently used key document. `use <# from list>`

---

##### uses these dependencies:

[![@vdmeer-asciitable](https://img.shields.io/badge/%40vdmeer-asciitable-lightgrey?style=for-the-badge)](https://github.com/vdmeer/asciitable)
[![@dialex-JColor](https://img.shields.io/badge/%40dialex-JColor-red?style=for-the-badge)](https://github.com/dialex/JColor)
![last-commit](https://img.shields.io/github/last-commit/white5moke/handoff?style=for-the-badge)
![license: bsd-3-clause](https://img.shields.io/github/license/white5moke/handoff?style=for-the-badge)
![repo-size](https://img.shields.io/github/repo-size/white5moke/handoff?style=for-the-badge)
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
import java.security.*;
import java.time.Instant;
import java.time.ZoneId;
import java.util.*;
import java.util.Arrays;
import java.util.Base64;
import java.util.List;
import java.util.Scanner;
import java.util.concurrent.atomic.AtomicInteger;

public class HandoffClient {
Expand Down Expand Up @@ -315,7 +318,7 @@ private void generateKey(String msg) throws NoSuchAlgorithmException, InvalidKey
Files.createDirectories(storePath.getParent());
Files.createFile(storePath);

//Files.write(storePath, keysJson.toString().getBytes(StandardCharsets.UTF_8), StandardOpenOption.CREATE);
//Files.write(storePath, contents, StandardOpenOption.CREATE);
Files.writeString(storePath, keysJson.toString(), StandardOpenOption.CREATE);

System.out.println(String.format("key saved to document `%s`", storePath.toString()));
Expand Down

0 comments on commit 0ab9b89

Please sign in to comment.