Questions tagged [openpgp.js]

This project aims to provide an Open Source OpenPGP library in JavaScript so it can be used on virtually every device. Instead of other implementations that are aimed at using native code,

This project aims to provide an Open Source OpenPGP library in JavaScript so it can be used on virtually every device. Instead of other implementations that are aimed at using native code, OpenPGP.js is meant to bypass this requirement (i.e. people will not have to install gpg on their machines in order to use the library). This library implements all the needed OpenPGP functionality in a JavaScript library that can be reused in other projects that provide browser extensions or server applications. It allows developer to sign, encrypt, decrypt, and verify any kind of text - in particular e-mails - as well as managing keys.

70 questions
0
votes
1 answer

Encrypt works, but not decrypt in openpgp.js

I am trying to decrypt and encrypt strings with openpgp.js. Encryption works fine, but I can't decrypt. I really can't get it to work. Here is a working example of the encryption: https://jsfiddle.net/d4vL8ueh/1/ var message = "secret…
Kristoffer
  • 1,984
  • 3
  • 14
  • 29
0
votes
1 answer

Where should a compiled script be placed in React?

I am trying to include client side library (OpenPGP.js) in my react application to allow multiple react components to interact with OpenPGP.js via utility functions. Where should I place the script tag
Rahil Parikh
  • 89
  • 1
  • 8
0
votes
1 answer

Where should I place a script in React/Redux?

I am very new to react/redux/node and I recently started learning them. I am trying to write an application that would use OpenPGP.JS to provide encryption and decryption functions. While certain components within the application may need to call…
Rahil Parikh
  • 89
  • 1
  • 8
0
votes
1 answer

OpenPGP.JS: Error while decrypting a message

I try to decrypt a message by using OpenPGP.JS. I always get this Error: Unhandled promise rejection (rejection id: 1): Error: Error decrypting message: No symmetrically encrypted session key packet found. This is my code: var openpgp =…
markus0074
  • 309
  • 1
  • 4
  • 14
0
votes
2 answers

How do we set 'expiration time', when we create new key with OpenPGP?

In OpenPGP.js we have a function Key.prototype.getExpirationTime, wich "returns the expiration time of the primary key or null if key does not expire": https://github.com/openpgpjs/openpgpjs/blob/master/src/key.js#L472 But how do we set this…
Viktor
  • 259
  • 1
  • 2
  • 7
0
votes
1 answer

Openpgpjs: unable to verify a detached signature

The public key can be downloaded from here That is the string i would like to verify: 6mjdvgmdvggpyoaf.onion That is the detached signature: -----BEGIN PGP…
juan ezquerro
  • 145
  • 2
  • 12
0
votes
1 answer

Error from openpgpjs example: 'openpgp.encrypt is not a function'

I'm getting 'openpgp.encrypt is not a function' error while trying the example given at the openpgp.js github page: https://github.com/openpgpjs/openpgpjs/blob/master/README.md#getting-started Following the example presented and after installing…
tgoneil
  • 1,522
  • 3
  • 19
  • 30
0
votes
0 answers

sendResponse is not working inside decryptMessage function

I'm using openpgp.js in my chrome extension, and sendResponse that sends the response to the content script from decryptMessage is NOT working: openpgp.decryptMessage(key, message).then(function(plaintext) { var res = sendResponse({result:…
user3112115
  • 695
  • 3
  • 12
  • 23
0
votes
1 answer

openpgp.js on wp8 error

I'm using an openPgpJs library in my app, created with Apache Cordova. Here's the part of the code: var publicKey = openpgp.key.readArmored(_publicKey); openpgp.encryptMessage(publicKey.keys, text).then(function (pgpMessage) { …
k102
  • 7,861
  • 7
  • 49
  • 69
-1
votes
1 answer

Unable to PGP Encrypt/Decrypt Excel file using OpenPGP.js

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.worker.js' }); // set the relative web worker…
1 2 3 4
5