From cc58d3509fa55fbb72025417e9cb08a0fa6523e5 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Sat, 19 Jul 2025 14:33:05 -0400 Subject: [PATCH] Clearly document decrypted entry format --- go.mod | 2 +- wiki/developers.md | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 9a907db..6afbe20 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/rwinkhart/libmutton -go 1.24.4 +go 1.24.5 require ( github.com/pkg/sftp v1.13.9 diff --git a/wiki/developers.md b/wiki/developers.md index df5ffa2..7a525fa 100644 --- a/wiki/developers.md +++ b/wiki/developers.md @@ -46,3 +46,15 @@ If creating a third-party client that requires extra configuration to be stored, configKey = ``` This ensures that a user can use multiple client applications with the same configuration while avoiding conflicts. + +## Entry Format +A decrypted libmutton entry is a plaintext file where each line indicates a new field in the entry. + +These fields are as follows: +``` +0/first line: password +1/second line: username +2/third line: TOTP secret +3/fourth line: URL +4+/fifth line+: notes +```