Commit graph

16 commits

Author SHA1 Message Date
Luis Alberto Jaramillo Gonzalez
81ff801005
chore: update version to 1.2.0 in package-lock.json 2026-05-30 17:56:09 -05:00
scott
99b77ff3c2 [Implement the openpgpjs encryption backend that 1.1.5 already scaffolds
in settings. Selecting the "openpgpjs" GPG Library now performs all
crypto in-app via OpenPGP.js instead of the native gpg binary, so the
plugin works on mobile (Android/iOS) as well as desktop. The native
"CLI commands" path is unchanged and remains the choice for OS keychain
and YubiKey users.]

feat: implement OpenPGP.js backend for mobile support

The pgpLibrary setting and its "openpgpjs" option already existed in
1.1.5, but choosing it hid the native UI without providing an
implementation. This adds that implementation as an opt-in second
backend, leaving the native gpg path fully intact.

Changes:
- src/openpgp.ts: OpenPGP.js getListPublicKey/gpgEncrypt/gpgDecrypt,
  an in-memory passphrase cache, and browser-safe base64 helpers.
- src/PassphraseModal.ts: prompts for the private-key passphrase
  (mobile has no pinentry/gpg-agent).
- src/gpg.ts: the three crypto functions dispatch on settings.pgpLibrary;
  child_process is now required lazily so the module loads on mobile.
- src/Settings.ts: adds pgpPublicKeyArmored, pgpPrivateKeyArmored,
  pgpPassphrase, pgpPassphraseCacheMinutes; guards process.platform.
- src/SettingsTab.ts: renders armored-key/passphrase/cache UI in the
  openpgpjs branch (instead of only hiding native settings); fs is now
  required lazily; hides the native sign toggle in openpgpjs mode.
- src/EncryptModal.ts / src/DecryptPreviewModal.ts: openpgpjs branches
  (single configured key, passphrase prompt + cache, browser-safe base64).
- manifest.json: isDesktopOnly false. styles.css: .gpg-key-textarea.
- README.md: documents the openpgpjs library option.

The base64 wire format is identical between backends, so blocks encrypted
with native gpg and with OpenPGP.js are interchangeable for the same key.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-26 11:17:31 +10:00
Luis Alberto Jaramillo Gonzalez
8348870d2d
chore: update devDependencies and dependencies to latest versions 2026-05-05 11:46:45 -05:00
Luis Alberto Jaramillo Gonzalez
c202ed7f32
Update version to 1.1.5 2025-12-03 12:02:35 -05:00
Luis Alberto Jaramillo Gonzalez
59913688b7
Update npm libraries 2025-12-03 08:06:59 -05:00
dependabot[bot]
64bee7155b
Bump esbuild in the npm_and_yarn group across 1 directory
Bumps the npm_and_yarn group with 1 update in the / directory: [esbuild](https://github.com/evanw/esbuild).


Updates `esbuild` from 0.17.3 to 0.25.0
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG-2023.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.17.3...v0.25.0)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-type: direct:development
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-11 04:43:40 +00:00
Luis Alberto Jaramillo Gonzalez
13062783f1
New setting tab to show whole GPG command in Obsidian Developer Console 2024-08-25 19:59:04 -05:00
Luis Alberto Jaramillo Gonzalez
99fc63f12f
Creating a new 1.1.3 version 2024-08-25 19:15:29 -05:00
Luis Alberto Jaramillo Gonzalez
a5ed3de902
Fix the version number 2024-08-14 12:29:15 -05:00
Luis Alberto Jaramillo Gonzalez
2c6d745144
Add new feacture to include add a before and after gpg command 2024-08-14 12:09:26 -05:00
Luis Alberto Jaramillo Gonzalez
fc42009b73
Add new version 1.0.7 2024-04-02 07:43:51 -05:00
Luis Alberto Jaramillo Gonzalez
e199e22dc3
Upgrade to 1.0.6 version 2024-03-08 15:17:32 -05:00
Luis Alberto Jaramillo Gonzalez
6202d643f1
Upgrade version to 1.0.5 2024-03-03 13:01:48 -05:00
Luis Alberto Jaramillo Gonzalez
264a40a95f
Fix all versions in *.json files 2024-02-19 09:52:15 -05:00
Luis Alberto Jaramillo Gonzalez
67e2d652f2
Live Preview is done 2024-01-22 10:34:10 -05:00
Luis Alberto Jaramillo Gonzalez
efa073e360
Initial commit with default obsidian plugin template 2024-01-04 13:45:32 -05:00