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: '659527269390168525760193934583442379426479412916240458010185080095717457574920663718668807705719846993572151429774772073541043266487908051058018483374449317643075320765894086203232910273969379441188207207261986202686423368970271112888707693082551051665597813716579141451130755418663965906969946927875206679169716832096614481942727768111204979663119530757479147793833433672229676346728483174923187940989661601420248865569376964374268440045318423254958412701757825414438344722803472308320802565001564136019989367200289120132306877053685535213972416547213769553249828028130536766072279143901729882706678834068069831786902729986490529583734721235515236819044645977552657489896772126815879633897214348383906380686966006666256568531788056874318541606134156021237305209585645662531480426903595692550161994811642247105271412634004887289267597280586274393531714938125062487631150413266253912007496379672946418456634121119945167849026045788827456666273263319059009933807606519808046322564429441350082857838543569406960828241868937773145002796439231280193082546973241398197765486594517357205448340820533494620156097686606178779261726215591928616560356542613080453293276833176153563367347348533778800634858864017949312489140560781811020805511461885660987354132973444586851841499996831512269080799875684955780549257064412597469621850294656998907359849908167680036802495658430190266345507650031910943900848110448252137475077830207857223264320777100472770781991373572403688449246583364749570854092969616359398260658830557888576288780342587545314300806997498996431259238179200875322767911539657454616222676475528930780843754837658428132711601906462920791819310479481543340881879306780976825084106215652458273649868788041807331448615197257214860879337473753819152348533697357124671277543866309916929371101733278464585151093632256547535446928297199089555869098447785492657971365462853713704637958988173765096796894776676209976309853528008054054431534295969022471972740481411507839663994293225336870716113598717421247108206766500562697583175497063496646352665252070180994308490794540732268255394802092768304874844844850784300858985808464465849685579542658120851102172736809696006418601289863242570596032953935984416987872534770079797347892905143068448149133175253836395331968973365222567920251505815969938580262602739240615166625382212276088009811725418300688809290311947392512993523904319143477749813582170761633329658674562750097585875052174926204212704486905361344767146737919543203', q: '329763634695084262880096967291721189713239706458120229005092540047858728787460331859334403852859923496786075714887386036770521633243954025529009241687224658821537660382947043101616455136984689720594103603630993101343211684485135556444353846541275525832798906858289570725565377709331982953484973463937603339584858416048307240971363884055602489831559765378739573896916716836114838173364241587461593970494830800710124432784688482187134220022659211627479206350878912707219172361401736154160401282500782068009994683600144560066153438526842767606986208273606884776624914014065268383036139571950864941353339417034034915893451364993245264791867360617757618409522322988776328744948386063407939816948607174191953190343483003333128284265894028437159270803067078010618652604792822831265740213451797846275080997405821123552635706317002443644633798640293137196765857469062531243815575206633126956003748189836473209228317060559972583924513022894413728333136631659529504966903803259904023161282214720675041428919271784703480414120934468886572501398219615640096541273486620699098882743297258678602724170410266747310078048843303089389630863107795964308280178271306540226646638416588076781683673674266889400317429432008974656244570280390905510402755730942830493677066486722293425920749998415756134540399937842477890274628532206298734810925147328499453679924954083840018401247829215095133172753825015955471950424055224126068737538915103928611632160388550236385390995686786201844224623291682374785427046484808179699130329415278944288144390171293772657150403498749498215629619089600437661383955769828727308111338237764465390421877418829214066355800953231460395909655239740771670440939653390488412542053107826229136824934394020903665724307598628607430439668736876909576174266848678562335638771933154958464685550866639232292575546816128273767723464148599544777934549223892746328985682731426856852318979494086882548398447388338104988154926764004027027215767147984511235986370240705753919831997146612668435358056799358710623554103383250281348791587748531748323176332626035090497154245397270366134127697401046384152437422422425392150429492904232232924842789771329060425551086368404848003209300644931621285298016476967992208493936267385039898673946452571534224074566587626918197665984486682611283960125752907984969290131301369620307583312691106138044004905862709150344404645155973696256496761952159571738874906791085380816664829337281375048792937526087463102106352243452680672383573368959771601'}