lajg-dev_Obsidian-Plugin-GP.../package.json

29 lines
859 B
JSON
Raw Permalink Normal View History

{
2024-02-19 14:52:15 +00:00
"name": "gpg-encrypt",
"version": "1.2.0",
2024-08-14 17:29:15 +00:00
"description": "Plugin to encrypt partial text or complete notes using GPG technology, it is compatible with security keys such as YubiKey or traditional GPG encryption methods",
"main": "main.js",
"scripts": {
"dev": "node esbuild.config.mjs",
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
"version": "node version-bump.mjs && git add manifest.json versions.json"
},
"keywords": [],
"author": "",
"license": "MIT",
"devDependencies": {
"@types/node": "^25.6.0",
"@typescript-eslint/eslint-plugin": "^8.59.2",
"@typescript-eslint/parser": "^8.59.2",
"builtin-modules": "^5.1.0",
"esbuild": "^0.28.0",
"obsidian": "^1.12.3",
2025-12-03 13:06:59 +00:00
"tslib": "2.8.1",
"typescript": "^5.9.3"
2024-01-22 15:34:10 +00:00
},
"dependencies": {
[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 01:17:31 +00:00
"@codemirror/language": "^6.12.3",
"openpgp": "^6.3.0"
}
}