UNPKG

basic_simple_elgamal

Version:

This is a cypher engine which uses ElGamal cryptosystem internally. besides cryptography, it provide some group functionality such as add 2 members or select a random group member and so on.

1 lines 4.96 kB
module.exports = { p: '601825142127533004407716079813823594753583085035592489155098341413691726621299557040939201666347030089709686200997356513887658609811362454192879923160677545464088377656666085643649762799951899824507456990053748440242714354800408985485252249210300075710257201437314373991667102173574614387940734958098118961612024672647569841864858207216576799511507336034870050519638239875711038968762766792429139867578010715457335802536966236542635962023746366399245602039307226888956464547065286073153469249592642099805194442702039682669764058936621926313562922829051461103387054115776644715752456129875814323523488246889480308659358782797505437676230728297314559218100299662093992771371459774646317147771010156815522347337837831874731324699829373812106627102165560993421632407701117746561608944969220482727108228356960678858062860505661980981614164948855628713686687753072412657490272889955298167819773927182636705982477785143831109447642689280848546282322051741739890277925324293685920089172533346801195419674830855679527850858085511601734120178318691596945872613856546568991871321727233969062210107783131857282164668721415293345733767829015356505175824961759230045050971785865077164851128805298929486454444385623143544648141014548312687533488037287779663893812593149416836427148792730460787734601914278471428225927276359573804917551026493523163805484960757613928346337614346881384767632790811973729395907127015193111598504787278487875516018211619409209544701402479271668243044558924592138299404787742096086192112335229551950491635584647586725864899065917601141020734049968782200282267916598005474358094451858124317096691508377846900052149267030962324266005604262615236304250100238819944306126409342283462994016435064021957653628584649358519171250243364527088246560433419124888479468445984784759203179028804861475113955504068188280141407683447814073407360742199128717933246285043522290709518086524534566268459598320871776163161397361927368045408022039075053051587038883454251107673592167535005614682082327271059984616147458084170858552534669804340964105817772624346788121057166928488610336388148479380981365083698255006287264136753625752890308334341164769486575524755600579628083985258429249346807472451072150506506429245358790195695944833751956145479778380573054199185929052303732786156613024373329996159394977371281416643024967264044402252519296370616841660252307049525967392446259241366070649129605870004324353954314591420566954849831671750176034132967273925062274903947683879', q: '300912571063766502203858039906911797376791542517796244577549170706845863310649778520469600833173515044854843100498678256943829304905681227096439961580338772732044188828333042821824881399975949912253728495026874220121357177400204492742626124605150037855128600718657186995833551086787307193970367479049059480806012336323784920932429103608288399755753668017435025259819119937855519484381383396214569933789005357728667901268483118271317981011873183199622801019653613444478232273532643036576734624796321049902597221351019841334882029468310963156781461414525730551693527057888322357876228064937907161761744123444740154329679391398752718838115364148657279609050149831046996385685729887323158573885505078407761173668918915937365662349914686906053313551082780496710816203850558873280804472484610241363554114178480339429031430252830990490807082474427814356843343876536206328745136444977649083909886963591318352991238892571915554723821344640424273141161025870869945138962662146842960044586266673400597709837415427839763925429042755800867060089159345798472936306928273284495935660863616984531105053891565928641082334360707646672866883914507678252587912480879615022525485892932538582425564402649464743227222192811571772324070507274156343766744018643889831946906296574708418213574396365230393867300957139235714112963638179786902458775513246761581902742480378806964173168807173440692383816395405986864697953563507596555799252393639243937758009105809704604772350701239635834121522279462296069149702393871048043096056167614775975245817792323793362932449532958800570510367024984391100141133958299002737179047225929062158548345754188923450026074633515481162133002802131307618152125050119409972153063204671141731497008217532010978826814292324679259585625121682263544123280216709562444239734222992392379601589514402430737556977752034094140070703841723907036703680371099564358966623142521761145354759043262267283134229799160435888081580698680963684022704011019537526525793519441727125553836796083767502807341041163635529992308073729042085429276267334902170482052908886312173394060528583464244305168194074239690490682541849127503143632068376812876445154167170582384743287762377800289814041992629214624673403736225536075253253214622679395097847972416875978072739889190286527099592964526151866393078306512186664998079697488685640708321512483632022201126259648185308420830126153524762983696223129620683035324564802935002162176977157295710283477424915835875088017066483636962531137451973841939'}