[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/base32 5065525032 024/103: Update docstrings and readme
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/base32 5065525032 024/103: Update docstrings and readme |
Date: |
Sat, 10 Feb 2024 13:00:01 -0500 (EST) |
branch: elpa/base32
commit 5065525032522e27998651c0738e558b3fbd82e1
Author: Vivek Das Mohapatra <vivek@collabora.co.uk>
Commit: Vivek Das Mohapatra <vivek@collabora.co.uk>
Update docstrings and readme
---
README.md | 7 +++----
totp-interop.el | 17 ++++++++++-------
2 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/README.md b/README.md
index 61a7d6cb8c..6b6b1a0b98 100644
--- a/README.md
+++ b/README.md
@@ -14,8 +14,7 @@ but for now either:
totp.el will look find its copies of base32.el and hmac.el in
its own directory by default.
-If you want to import TOTP secrets you can load totp-interop
-and invoke:
+If you want to import TOTP secrets you can invoke:
M-x totp-import-file RET
@@ -24,8 +23,8 @@ This supports:
- simple base32 encoded TOTP secrets (max 1 per file)
- otpauth:// scheme URLs in a text file (any number per file)
- otpauth-migration:// scheme URLs in a text file (any number per file)
- - a mix of the above URL scemes in a text file
- - QR codes encoding any mix of the URLs above
+ - a mix of the above URL schemes in a text file
+ - QR codes encoding any mix of the URL schemes above
Once you have at least one secret available, invoke:
diff --git a/totp-interop.el b/totp-interop.el
index 6ea0014e59..64e348398f 100644
--- a/totp-interop.el
+++ b/totp-interop.el
@@ -194,6 +194,8 @@ OTP secrets+metadata by calling `totp-unwrap-otp-blob' on
them."
result))
(defun totp-load-image-file (file)
+ "Use `totp-file-import-command' to extract the contents of FILE
+and process the results with `totp-parse-buffer-otp-urls'."
(let ((args (mapcar (lambda (a) (if (equal "@file@" a) file a))
(cdr totp-file-import-command))))
(with-temp-buffer
@@ -211,13 +213,14 @@ OTP secrets+metadata by calling `totp-unwrap-otp-blob' on
them."
(totp-find-hmac-key-by-class b32-class 64))))
(defun totp-load-file (file)
- "Load secret(s) from FILE. The file may be a text file containing:
- - A bare base32 encoded secret (the filename will be used for the label)
- - Any number of otpauth:// URLs
-Or
- - A QR code image understood by `totp-file-import-command`\n
-Returns a list of TOTP secret alists - that is: Each element of
-the returned list is the same structure returned by `totp-unwrap-otp-blob'."
+ "Load secret(s) from FILE. FILE may be:
+ - a single base32 encoded TOTP secret
+ - any number of otpauth:// scheme URLs
+ - any number of otpauth-migration:// scheme URLs
+ - a mix of entries encoded in the above URL schemes
+ - a QR code understood by `totp-file-import-command'.\n
+Returns a list of TOTP secret alists - that is: Each element of
+the returned list is a structure returned by `totp-unwrap-otp-blob'."
(let (mime-type result)
(setq file (expand-file-name file)
mime-type (mailcap-extension-to-mime (file-name-extension file)))
- [nongnu] elpa/base32 e18e58fd96 042/103: totp-truncate-hash: typo in docstring, (continued)
- [nongnu] elpa/base32 e18e58fd96 042/103: totp-truncate-hash: typo in docstring, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 11819b793b 051/103: Suppress a docstring-related byte-compile error, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 32515e59da 052/103: totp-update-token-notification: add docstring, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 2b6c12528c 065/103: Mention Google Authenticator in a couple more places, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 676e64115d 048/103: Test should target totp-auth.el after the rename, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 522bb9d85f 056/103: Another linter opinion accommodated, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 93bfede7bf 060/103: More Great Renaming - move hmac to totp-auth-hmac, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 72c09337eb 062/103: Supress misleading warnings about use of ’lsh’, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 7023bb8697 049/103: Suppress some more (spurious) byte-compile errors, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 56b160f436 005/103: Handle .netrc style backends containing otpauth url secrets, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 5065525032 024/103: Update docstrings and readme,
ELPA Syncer <=
- [nongnu] elpa/base32 1c9bc087ba 039/103: totp-auto-copy-password: improve docstring and fix defcustom typos, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 a066bd453f 029/103: Remove totp-minimum-ui-grace which we're not using after all, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 15218226f9 053/103: checkdoc is having Opinions™ again, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 0c9ab0005b 054/103: Rename all the things as we migrate from totp-… to totp-auth-…, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 4492236c1f 055/103: Squash some warnings when byte-compiling the tests, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 a15c27157a 050/103: Checkdoc incorrectly detects .\n as "not a complete sentence", ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 bd7959a5ef 058/103: Add a LICENSE (sic) to match the SPDX entries, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 d435f806a0 059/103: Documentation changes related to the Great Renaming, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 7f0fe12bce 063/103: Fix tests after the Great Renaming, ELPA Syncer, 2024/02/10
- [nongnu] elpa/base32 4708406887 067/103: Add comm to package's keywords, ELPA Syncer, 2024/02/10