MCPcopy Index your code
hub / github.com/darksolopic/PasswordManagerGUI / writeToFile

Method writeToFile

PasswordManagerGUI.java:133–139  ·  view source on GitHub ↗
(String encryptedPassword)

Source from the content-addressed store, hash-verified

131 }
132
133 private void writeToFile(String encryptedPassword) {
134 try (BufferedWriter writer = new BufferedWriter(new FileWriter(ENCRYPTED_PASSWORD_FILE))) {
135 writer.write(encryptedPassword);
136 } catch (IOException e) {
137 JOptionPane.showMessageDialog(this, "Failed to write encrypted password to file", "Error", JOptionPane.ERROR_MESSAGE);
138 }
139 }
140
141 private String decrypt(String masterPassword, String encryptedPassword) {
142 try {

Callers 1

encryptMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected