• https://keybase.io/kbpgp

    From Alterego@VERT/ALTERANT to All on Tuesday, October 08, 2019 22:21:05
    Howdy,

    I was toying with the idea of having pgp signed mail flowing in echomail.

    I actually want to use it to send data between BBS systems and have the BBS verify that a message did infact originate from another process (where that process would sign the message content).

    Googling around I found this library which I thought may do the heavy lifting for me and keep it all in javascript (instead of execing OS commands).

    Unfortunately, this is a little more complex than my skills, so wondering if anybody has done anything like this - or has some spare bandwidth to get me started. ;)

    My first step was to create a js file that just had:

    var gpg = load({},'kbpgp/kbpgp-2.1.0.js');

    but jsexec that file and it spits out this error:
    line 31516: TypeError: ArrayBuffer.isView is not a function

    If I comment out that part of the code, then there complains about buf.write() not being a function.

    Googling around, it seems that ArrayBuffer is normal part of javascript, so my first thought is maybe the javascript library in SBBS is missing advancements in javascript that perhaps kbpgp is leveraging?

    Any tips would be appreciated.
    ...ëîå*

    ... When Chuck Norris breaks wind, the wind stays broken.

    ---
    þ Synchronet þ Alterant | an SBBS in Docker on Pi!
  • From echicken@VERT/ECBBS to Alterego on Tuesday, October 08, 2019 09:50:09
    Re: https://keybase.io/kbpgp
    By: Alterego to All on Tue Oct 08 2019 22:21:05

    Googling around, it seems that ArrayBuffer is normal part of javascript, so my first thought is
    maybe the javascript library in SBBS is missing advancements in javascript that perhaps kbpgp is
    leveraging?

    Almost certainly.

    MDN is a good place to look for stuff like this:

    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer

    Check the "Specifications" section near the bottom of the page. If a feature was introduced after ECMAScript 5.1, we don't have it (yet). Synchronet's JS engine was last updated somewhere around 2011.

    I was toying with the idea of having pgp signed mail flowing in echomail.

    Googling around I found this library which I thought may do the heavy lifting for me and keep it all
    in javascript (instead of execing OS commands).

    You might find somebody's old project on GitHub:

    https://github.com/search?l=JavaScript&p=2&q=pgp&type=Repositories

    Something last updated prior to 2015 stands a chance of working or being portable.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From Alterego@VERT/ALTERANT to echicken on Wednesday, October 09, 2019 09:20:49
    Re: https://keybase.io/kbpgp
    By: echicken to Alterego on Tue Oct 08 2019 09:50 am

    You might find somebody's old project on GitHub: https://github.com/search?l=JavaScript&p=2&q=pgp&type=Repositories Something last updated prior to 2015 stands a chance of working or being portable.

    Ahh, thank you - I'll take a look...

    Check the "Specifications" section near the bottom of the page. If a feature was introduced after ECMAScript 5.1, we don't have it (yet). Synchronet's JS engine was last updated somewhere around 2011.

    DM - any chance that JS engine can be updated ? (on knees begging...)

    Is it a big effort?
    ...ëîå*

    ... A damn good funeral is still one of our best and cheapest acts of theatre

    ---
    þ Synchronet þ Alterant | an SBBS in Docker on Pi!
  • From Digital Man@VERT to Alterego on Tuesday, October 08, 2019 16:14:40
    Re: https://keybase.io/kbpgp
    By: Alterego to echicken on Wed Oct 09 2019 09:20 am

    Re: https://keybase.io/kbpgp
    By: echicken to Alterego on Tue Oct 08 2019 09:50 am

    You might find somebody's old project on GitHub: https://github.com/search?l=JavaScript&p=2&q=pgp&type=Repositories Something last updated prior to 2015 stands a chance of working or being portable.

    Ahh, thank you - I'll take a look...

    Check the "Specifications" section near the bottom of the page. If a feature was introduced after ECMAScript 5.1, we don't have it (yet). Synchronet's JS engine was last updated somewhere around 2011.

    DM - any chance that JS engine can be updated ? (on knees begging...)

    It will be eventually.

    Is it a big effort?

    Yes.

    digital man

    This Is Spinal Tap quote #45:
    I don't really think the end can be assessed as of itself as being the end Norco, CA WX: 83.0øF, 24.0% humidity, 14 mph ENE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Alterego@VERT/ALTERANT to Digital Man on Wednesday, October 09, 2019 11:49:33
    Re: https://keybase.io/kbpgp
    By: Digital Man to Alterego on Tue Oct 08 2019 04:14 pm

    DM - any chance that JS engine can be updated ? (on knees begging...)
    It will be eventually.

    Well, I'm looking forward to that happening :)

    Is it a big effort?
    Yes.

    I'm happy to help - while I'm not really a C/C++/JS coder, I can normally figure stuff out with a google search.

    But I can help with testing - and very easily spin up isolated test environments... (And if you use git, I can automate that bit, perhaps even using some CI testing :)
    ...ëîå*

    ... Tag line thievery's fun ...On to the next Geraldo!

    ---
    þ Synchronet þ Alterant | an SBBS in Docker on Pi!