Hey Daniel, thank you again for the help. Now things are a little bit clearer :) At the moment I just want to get the latest minified version running.
So I included this file: <script src="./openpgp.min.js"></script> and called the function: encryptMessage() When I now trigger the function, the debugger tells me „ReferenceError: encryptMessage is not defined“. -May it be possible that I have to instantiate an openpgp object or something? Because in Version 0.1.0 I had to call openpgp.init(); -I didn’t manually include any libraries, are they automatically included in openpgp.min.js? BTW: What kind of PGP app are you developing? Best regards, Michael Am 09.02.2014 um 19:41 schrieb Daniel <[email protected]>: > Michael, > > Let me first clarify my previous email. Following the previous commands will > bring you to a place where you can run the tests. After running the grunt > command you will notice the lib folder with the files you mentioned exist. > So then you can run the tests while in the root of the repo with the command > 'mocha'. If the command mocha is not found, you can use: > > npm install -g mocha > > to install mocha globally on your machine. > > I have been able to use the minified version of openpgpjs in browser > extensions without any issue. The reason all of those are required is the > testing framework that openpgpjs uses, mocha, requires them. So you do not > need to install them if you do not want to run the tests. > > Best, > Daniel > > > On Sun, Feb 9, 2014 at 4:28 AM, Michael Kreuzer <[email protected]> > wrote: > Hi Daniel, > > thank you very much for your guide! > Are grunt, npm and node.js also mandatory if you only want to use the > minified version? > > Best regards, > Michael > > Am 08.02.2014 um 19:57 schrieb Daniel <[email protected]>: > >> Hey Michael, >> >> I was able to get the unit tests running by installing grunt with the >> command: >> >> npm install -g grunt-cli >> >> This assumes that node.js and npm are installed on your machine. This will >> install the grunt-cli in a global context, so that it is available to you >> regardless of what directory you are in. >> >> Then make sure you are in the root of the openpgp.js repo and type: >> >> npm install >> >> and then: >> >> grunt >> >> to run the tests. For more details check out the docs. >> >> I too am working on a pgp based web app. It's not in a place where it would >> be useful to share right now, but I'll be sure to share the repo with the >> list when it does anything useful. >> >> Best, >> Daniel >> >> >> On Thu, Feb 6, 2014 at 8:47 AM, Michael Kreuzer <[email protected]> >> wrote: >> Hello Payk, >> >> thanks for the quick reponse! >> I had a look into the unit tests but there was a dead link to openpgp.js. So >> I changed it. Next problem was that it refers to: >> <script src="lib/chai.js"></script> >> <script src="lib/mocha.js"></script> >> >> But there is no „lib" folder at all. So I tried to download mocha, but you >> would have node.js installed. >> And there are also some NPM commands. This seems to be a packet manager or >> something. >> >> I don’t have any experience with node.js, mocha, chai, npm…so this is a >> little bit confusing me, because node.js e.g. seems to be server side >> javascript (if I got that right). >> But why would one need server side actions for a javascript openpgp program? >> (Despite I want to get to know these techniques, I unfortunately don’t have >> the time to learn all these at the moment). >> >> Is there no simple way to just get this thing running with pure JS like in >> version 0.1.0? >> I just included the libraries, called the functions and it worked. >> >> Yes of course, and I would also have nothing against working together. >> May I ask where you are from? Because your name looks pretty german :) >> So what is the topic you are working on Payk? >> >> Michael >> >> Am 06.02.2014 um 15:11 schrieb Christian Hoffmann <[email protected]>: >> >>> Hello Herr Kreuzer. >>> >>> I would have a look into the unit tests. >>> they helped me a lot! >>> >>> The require function is for the grunt build proccess afaik. >>> In the minified versions they dont exist. >>> >>> Also have a look into the web worker unit tests. >>> If you don't want the browser to freeze for seconds when generating big >>> keys, >>> this will help you. >>> >>> Another note: >>> You seem to have allmost the same project as i am doing right now xD >>> more or less. >>> >>> We could exchange ideas or something. >>> >>> Greetings, >>> Payk >>> >>> >>> On Thu, Feb 6, 2014 at 3:15 PM, Michael Kreuzer <[email protected]> >>> wrote: >>> Hi @all, >>> >>> at the moment I’m writing my Bachelor’s Thesis and my topic is to integrate >>> the OpenPGP functionality in Facebook chat. >>> So you could use my web site to chat encrypted with other FB friends (The >>> chat part is done with XMPP using Strophe.js). >>> Therefore I’m using openPGP js and I think you guys did a really great job. >>> So thanks for the hard work. >>> Till now I’ve made it to automatically send and receive encrypted messages, >>> to decrypt them, sign (and partly to verify them). >>> >>> But I did this only in openPGP 0.1.0 and the current version is 0.3.2. >>> Now I wanted to migrate, but basicially the whole structure of openpgp js >>> has changed. >>> >>> So here’s my problem: >>> a) When I’m using the source code version javascript can’t find the >>> „require()“ function. >>> I assume this part of node.js / browserify / … >>> I don’t have any experience with these plugins, so maybe someone could tell >>> me what to do. >>> >>> b) When I’m using the minified version it simply can’t find the functions >>> e.g. „signAndEncryptMessage()". >>> >>> In Version 0.1.0 the examples helped me a lot. >>> Would be nice if someone could give me some help. Thanks in advance! >>> >>> Regards, >>> Michael >>> _______________________________________________ >>> >>> http://openpgpjs.org >>> Subscribe/unsubscribe: http://list.openpgpjs.org >>> >>> _______________________________________________ >>> >>> http://openpgpjs.org >>> Subscribe/unsubscribe: http://list.openpgpjs.org >> >> >> _______________________________________________ >> >> http://openpgpjs.org >> Subscribe/unsubscribe: http://list.openpgpjs.org >> >> _______________________________________________ >> >> http://openpgpjs.org >> Subscribe/unsubscribe: http://list.openpgpjs.org > > > _______________________________________________ > > http://openpgpjs.org > Subscribe/unsubscribe: http://list.openpgpjs.org > > _______________________________________________ > > http://openpgpjs.org > Subscribe/unsubscribe: http://list.openpgpjs.org
_______________________________________________ http://openpgpjs.org Subscribe/unsubscribe: http://list.openpgpjs.org

