Jo stimmt schon. Der name hört sich Deutsch an. Naja also ich hab bisschen beispielcode den ich nachher mal raus suchen kann.
Es stimmt schon das es für node.js irgendwie kein sinn macht. Da kann man bestimmt eh systemcalls machen und auf gnupg zugreifen etc. Aber node.js ist auch neuland für mich. Also was ich momentan damit mache ist folgendes: Im frontend erzeuge ich ein pgp keypair und sende den public key zu ein php server. der antwortet mit dem schlüsdel verschlüsselt und liefert ein aes-256bit key zurück den nur der cleint lesen kann. ab da hat man eine aes verbindung. mit der kann man sich dann einloggen"account erstellen etc. daten zwischen nutzern wird auch per pgp ausgetauscht aber immer mit der aes schicht drüber. kurz gesagt soll ein sozial network werden ;) von wo aus deutschland kommst du, wenn ich fragen darf? gruß, payk On Feb 6, 2014 5:35 PM, "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

