Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
133 views

I'm facing an issue when trying to use PGP keys generated by openpgpjs with pgpy in Python. Specifically, I am encountering the following error: 14 is not a valid HashAlgorithm Here is my openpgpjs ...
Florian Massol's user avatar
0 votes
1 answer
64 views

As OpenPGP.js hasn't published in JSR yet, I need to import it via HTTP if I don't want to clone it to my local. Using: import 'https://unpkg.com/browse/[email protected]/dist/openpgp.js'; yields: error: ...
Ooker's user avatar
  • 3,404
1 vote
0 answers
570 views

I'm attempting to decrypt an OpenPGP-encrypted message in a Node.js script using the openpgp library. My script runs into an error where the decryption fails with the message: Decryption failed ...
CR00N0S's user avatar
  • 13
1 vote
1 answer
96 views

The issue I am trying to use OpenPGP.js V6 in a webapp made with SvelteKit, TypeScript and Vite. OpenPGP.js V6 is now declared as a module, and I cannot find a way to import it correctly with my ...
Flow's user avatar
  • 799
1 vote
1 answer
76 views

I try to read my public key with 6 notations from armored text by OpenPGP.js, but I got 4 notations and somehow it has same two notations each. notations are: gpg> showpref [ultimate] (1). ...
NyaightHazard's user avatar
1 vote
1 answer
92 views

Original Question: Problem Description I am developing a browser extension that uses OpenPGP.js to encrypt and decrypt selected text on a webpage. The extension works perfectly in Chrome, but I ...
Sukhmeet Singh's user avatar
0 votes
0 answers
243 views

I have an Azure Function running node's openpgp decryption module. It works fine when we decrypt our own files, but we are receiving a file from a third party that is signed with their public key. We ...
Harvey A. Ramer's user avatar
0 votes
2 answers
743 views

I have a few pgp encrypted binary files in an s3 bucket. I'm trying to decrypt them using a nodejs lambda function. It's working fine for the files which are less than 2 GB in size, but the decryption ...
SINDHYA PETER's user avatar
0 votes
0 answers
117 views

I'm trying to encrypt text using OpenPGP, but it is not similar to the value generated by CLI Command: `gpg --recipient <Hex_Key_Id> --armor --always-trust --encrypt test_pwd.txt; rm -f test_pwd....
Mohammed Adil Yousuf's user avatar
0 votes
1 answer
1k views

I have a string message called customerPublicKey which I encrypted with OpenPGP.js: const { customerPublicKey} = await openpgp.generateKey({ type: 'rsa', passphrase: contract....
Boris K's user avatar
  • 3,590
1 vote
0 answers
146 views

Building an encrypted system which uses openPGP for keys generation, encryption, decryption for browsers and ObjectivePGP for ios app for the same functions. The issue I am facing is when I generate ...
Aman Gupta's user avatar
1 vote
0 answers
285 views

File is generated successfully but when trying to open file, it is in invalid gzip format after decryption. Shows error unsupported format and failing to decompress. zlib.gzip("Hello World", ...
Hello World's user avatar
1 vote
1 answer
1k views

I am using openpgp library to encrypt and decrypt a file inside a React component. Encryption works as expected with less memory usage but decryption takes too much memory. Library version that I am ...
Sumit Sahoo's user avatar
  • 3,211
1 vote
0 answers
61 views

onmessage = async({data:{blob, privateKey},ports:[port]})=>{ try { const fileArray = await blob.arrayBuffer(); const uint8 = new Uint8Array(fileArray); var readableStream = ...
ផន សុខលីន Phon Soklin's user avatar
1 vote
0 answers
492 views

I am working on a application where I am selecting pdf file from local file and encrypting it with openpgpjs. Though I am able to encrypt the pdf, When I try to open the encrypted pdf in chrome it is ...
KonTash's user avatar
  • 430
2 votes
1 answer
644 views

I have generated keys using Openpgp.js and I got the following key as public key: publicKey: "-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nxjMEYsTz2BYJKwYBBAHaRw8BAQdAP6YvOhz9VKvV78ELW34Ufn1M10lDrv0k\...
2StepsFromHell's user avatar
0 votes
1 answer
925 views

On Openpgp.js, in order to generate the encryption keys, the name and the email properties are mandatory: await generateKey({ curve: 'brainpoolP512r1', userIDs: [{ name: 'Test', email: '[email protected]'...
John's user avatar
  • 331
1 vote
1 answer
939 views

I would like to encrypt a zip file using OpenPGP.js (https://browserpgp.github.io/). All processing needs to be done on the client-side, without involvement of Node.js. Using the javascript-based ...
Paul Butler's user avatar
0 votes
1 answer
2k views

I have a Job handling the execution of a decryption job in the background. This is the code for the decryption: export default async function ( job: Job<DecryptionJobPayload>, cb: ...
Melly's user avatar
  • 31
1 vote
1 answer
648 views

I have a Cloudflare Worker (created from the Typescript template and with the build config barely changed) that needs to use openpgp.js, which as this link shows, is supposed to be supported when ...
Renato's user avatar
  • 13.8k
1 vote
1 answer
1k views

I am trying to encrypt a message using PGP but I am getting an error that states: ReferenceError: TextDecoder is not defined at Object.decodeUTF8 (node_modules/openpgp/src/util.js:225:21) ...
Rene Enriquez's user avatar
0 votes
1 answer
1k views

We are using PGP encryption to encrypt files before transfer. We are using the npm package OpenPGP.js to encrypt the files using a public key from the recipient. I have exported the public key in ...
navig8tr's user avatar
  • 1,884
3 votes
1 answer
2k views

I'm using the below pipeline to stream data from Aurora, transform it to csv, and send it to S3. Readable knex stream: const getQueryStream = (organizationId) => db.select('*') .from('users')...
navig8tr's user avatar
  • 1,884
0 votes
1 answer
1k views

I have the following code and I'm trying to generate public-private key: const openpgp = require("openpgp") const generateKeyPair = async () => { const { publicKeyArmored } = await ...
john's user avatar
  • 11
0 votes
0 answers
929 views

I am trying to decrypt one PGP file with OpenPGP javascript library. I am getting one error on the private key decryption TypeError: Cannot read property 'type' of null at SecretKey.decrypt Here is ...
Jay Dadhaniya's user avatar
4 votes
1 answer
3k views

I have a CSV file that has been encrypted and is now an unarmored PGP file. I'm trying to decrypt it using OpenPGP.js 5.0.0 and Node.js 14.17.5 but keep hitting a wall. At first, I tried the following ...
noamt's user avatar
  • 7,885
1 vote
0 answers
124 views

Can we have JavaScript library to derive RSA public and private keys from PGP public and private keys ?
Pand005's user avatar
  • 1,183
1 vote
2 answers
1k views

What I'm trying to do: get some Azure storage blobs from container DIDE and encrypt them with RSA 2048 and upload them in other container called encrypted-dide These blobs are downloaded through a ...
A B's user avatar
  • 174
0 votes
1 answer
549 views

import * as openpgp from "openpgp"; let detatchedSignature = "-----BEGIN PGP SIGNATURE----- insert signature here -----END PGP SIGNATURE-----"; openpgp.readSignature({ ...
Dan's user avatar
  • 307
0 votes
1 answer
191 views

I am trying encrypt text with OpenPGP.js. Here is an example of error: https://jsfiddle.net/7e2s516d/ let publicKeyArmored = `-----BEGIN PGP PUBLIC KEY BLOCK----- ...
Sow's user avatar
  • 35
0 votes
0 answers
688 views

I'm trying to decrypt messages with the decrypt function in OpenPGP.js but the 'data' field on the returned object only contains [object Object]. I've tried JSON.stringify but that does nothing. I've ...
B.R.'s user avatar
  • 56
2 votes
0 answers
1k views

I'm using openpgp.js to encrypt a s3 getObject stream. After the encryption I try to upload the encrypted stream using s3.upload() which results in the error: S3 upload list[0]" argument must be ...
Matthias Herrmann's user avatar
2 votes
0 answers
284 views

I have the following function, I am using TypeScript and the library OpenPGP JS import * as openpgp from "openpgp"; export async function decryptMessage( privateKeyArmored: string, ...
Rodrigo's user avatar
  • 1,049
2 votes
1 answer
679 views

I am using Jest to test a small function of mine that makes use of OpenPGP.js https://openpgpjs.org/ (the latest version, 4.10.9). I saw some workarounds using the library text-encoding-utf-8 and I ...
Rodrigo's user avatar
  • 1,049
0 votes
1 answer
1k views

I can sign and verify a test file through gpg without issue, but verifying the signature through OpenGPG.js fails with the error, "Message digest did not match." Why is this? $ gpg --armor --...
cqcallaw's user avatar
  • 1,523
-1 votes
1 answer
2k views

Tried encrypting and decrypting excel files the same way I am doing for csv/txt files but I am not able to. Encryption var rawMessage= fs.readFileSync(path) await openpgp.initWorker({ path: 'openpgp....
Vinit Sharswat's user avatar
3 votes
1 answer
6k views

Here is some of the code using openpgp.js: const privKeyObj = (await openpgp.key.readArmored(privkey)).keys[0]; await privKeyObj.decrypt(passphrase); options = { message: await openpgp.message....
jocca's user avatar
  • 31
1 vote
0 answers
1k views

I'm trying to encrypt text with OpenPGPJS in react application. I have a function in react class: const openpgp = require('openpgp'); ... class XYZ extends React.Component{ ... async encrypt(text, ...
Khan's user avatar
  • 37
1 vote
0 answers
141 views

My initial attempt using streams inside an asynchronous function was this: const fs = require('fs'); const openpgp = require('openpgp'); const util = require('util'); const readFileAsync = util....
trivial_tasks's user avatar
1 vote
0 answers
138 views

I have a Create React App project and am trying to encrypt a string with OpenPGP.js. However, I'm running into an unhandled syntax error. Assume the pubkey was already generated. I already tried ...
JSneak's user avatar
  • 11
0 votes
0 answers
21 views

Inside the OpenPGP.js module is this line of code: return (0, _message.createVerificationObjects) (signatureList, [literalDataPacket], keys, date, true) 1. createVerificationObjects is a ...
CuriousCat's user avatar
1 vote
1 answer
1k views

I'm trying to encrypt string with multiple keys but I get that error; TypeError: Error encrypting message: key.getPrimaryUser is not a function let pubKey = ['-----BEGIN PGP PUBLIC KEY BLOCK-----\r\...
Zelos's user avatar
  • 9
1 vote
1 answer
501 views

Please help...I am trying to get openPGP.js working in an existing ASP.Net MVC Web Application. I first started by adding the following html script tags: <script src="@Url.Content("~/Scripts/...
Shawn de Wet's user avatar
  • 6,066
3 votes
1 answer
2k views

I have a error when trying to encrypt a string with a pgp public key: 'Could not find valid key packet for encryption in key 9ae788ff8eec0b31' This error doesn't appear with every key but with most ...
Pjotr Raskolnikov's user avatar
1 vote
1 answer
4k views

I'm trying to read a binary file, to encrypt/decrypt and save/write it. Comparing the original file with the resulting file of the decryption leads to the same filehash. So I think it's a correct/...
andreask's user avatar
  • 109
5 votes
1 answer
7k views

I am working on React-Native-OpenPGP for Encryption and Decryption. I want to take an image from my folder (local image fetch)/ Image url and convert that image into Uint8Array for encryption/...
Diksha235's user avatar
  • 452
0 votes
1 answer
5k views

I'm using openpgp.js version 2.2.1. So I've managed to encrypt a message just fine const options = { data: voteObject.option, // input as Message object publicKeys: (pgp.key....
chef's user avatar
  • 11
1 vote
0 answers
60 views

What all subsections of the raw email does protonmail.com encapsulate to formulate the PGP signature? I researched a bit and stumbled upon this Q&A thread which describes what all email ...
Ramen Noodles's user avatar
1 vote
1 answer
308 views

I am porting an openpgp.js application from Node.js to Angular2. It works fine in Node.js, but in Angular2 I get an error: TS2305: Module '"/Users/barry/Angular2/keyManager/node_modules/@types/openpgp/...
Barry Duggan KV4FV's user avatar
1 vote
0 answers
132 views

I am using Hybrid-Crypto.js for playing around with public/private key encryption. This function creates a random PEM-formatted RSA keypair // Generate 2048 bit RSA key pair rsa.generateKeypair(...
codebird456's user avatar