diff options
| -rw-r--r-- | kasi.el | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -70,6 +70,7 @@ Two %s are needed for password and username for now.") | |||
| 70 | (file (elt filenames (seq-position options selected)))) | 70 | (file (elt filenames (seq-position options selected)))) |
| 71 | file)) | 71 | file)) |
| 72 | 72 | ||
| 73 | ;; TODO implement some kind of validation of the sexp when saving | ||
| 73 | (defun kasi--get (file elem) | 74 | (defun kasi--get (file elem) |
| 74 | "Returns element from secret file." | 75 | "Returns element from secret file." |
| 75 | (car (with-temp-buffer | 76 | (car (with-temp-buffer |
| @@ -104,6 +105,7 @@ Uses /dev/urandom for cryptographic security." | |||
| 104 | charset-len)))))) | 105 | charset-len)))))) |
| 105 | result)) | 106 | result)) |
| 106 | 107 | ||
| 108 | ;; TODO implement some kind of validation of the sexp when saving | ||
| 107 | (defun kasi--edit (file) | 109 | (defun kasi--edit (file) |
| 108 | "Edits secret file." | 110 | "Edits secret file." |
| 109 | (find-file-other-window file)) | 111 | (find-file-other-window file)) |
