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: '851155771309925226394346683639486519489303000497985693359176649671871160874928893866350786802754296065817969309448617993994509555466631838397008901218771474716254498919102237574925023897946315639318472843940151509353111994884841977563421224141985688722469733567582261683763207862203288483473418790336886540861403434390623650441994782134301268230583505745688391845071203146508797842920557914688936649333218094339570798323130420245628991107552972162205618082475835572687668597345135884382529314887925584014358560096091502907261848949184562399034096698070309718966299603463794963043980898470626037950579504473334113558489953245277428452599247645696292763665322864208603008913289930614841583884454541836095784261033277585615608967631352375245884273967273603178418509947964990490725344654875047080346358574865445855545390608141604988964693013732693986802651135940883687578762949990944765146963537706867673179573128810717118268751974823496304048172920248115739951754271514502322971086630418605315675754929931971282857008031912411598441458851041094548355529484322470477724816551754280290929896940400827351003675301659655453452767536949892297165515764043438746205228825765834594324165967658464267610989410599844279062633808292538593453305815056805985721039884867416741628639360053303166377769179255883897785426207961526639933083937365625346642554078552687496191294961856535353021581702901368696849597222767805970612815262754437800394640865632140770075329619310564215034270410007519215125497116044833742249811425898706719087519038872236787807532178188442795668626041640338692750675822922162216029620818109481729904131139935562037688388840286387084109509997996792964387130516775817721258332565181897703135007114446228888433470758140047603029790656655511037886300026778088699352573085480243288771529334362404816101407473957315180100416673915363066469022453153330178923668037628723568480902552426075195138312826066913792250332744665913354031837938766251863907013498583223416802004750077800024003403446922264888037344856204646889201893598360020876411906180227280710954846068810240282708829588268821060106774443490618864060526268529655869058287565743229239480195513190816003661905773760115902122710028931138622606350919939598040293699722103196150692391710971962134203054636616286141138774124729923250551167360167130138131139988958811692859236533285646476684298571119035543429544374338513769750952339226018574611257732446535363866604770788599222638432190729290198244733608262395743', q: '425577885654962613197173341819743259744651500248992846679588324835935580437464446933175393401377148032908984654724308996997254777733315919198504450609385737358127249459551118787462511948973157819659236421970075754676555997442420988781710612070992844361234866783791130841881603931101644241736709395168443270430701717195311825220997391067150634115291752872844195922535601573254398921460278957344468324666609047169785399161565210122814495553776486081102809041237917786343834298672567942191264657443962792007179280048045751453630924474592281199517048349035154859483149801731897481521990449235313018975289752236667056779244976622638714226299623822848146381832661432104301504456644965307420791942227270918047892130516638792807804483815676187622942136983636801589209254973982495245362672327437523540173179287432722927772695304070802494482346506866346993401325567970441843789381474995472382573481768853433836589786564405358559134375987411748152024086460124057869975877135757251161485543315209302657837877464965985641428504015956205799220729425520547274177764742161235238862408275877140145464948470200413675501837650829827726726383768474946148582757882021719373102614412882917297162082983829232133805494705299922139531316904146269296726652907528402992860519942433708370814319680026651583188884589627941948892713103980763319966541968682812673321277039276343748095647480928267676510790851450684348424798611383902985306407631377218900197320432816070385037664809655282107517135205003759607562748558022416871124905712949353359543759519436118393903766089094221397834313020820169346375337911461081108014810409054740864952065569967781018844194420143193542054754998998396482193565258387908860629166282590948851567503557223114444216735379070023801514895328327755518943150013389044349676286542740121644385764667181202408050703736978657590050208336957681533234511226576665089461834018814361784240451276213037597569156413033456896125166372332956677015918969383125931953506749291611708401002375038900012001701723461132444018672428102323444600946799180010438205953090113640355477423034405120141354414794134410530053387221745309432030263134264827934529143782871614619740097756595408001830952886880057951061355014465569311303175459969799020146849861051598075346195855485981067101527318308143070569387062364961625275583680083565069065569994479405846429618266642823238342149285559517771714772187169256884875476169613009287305628866223267681933302385394299611319216095364645099122366804131197871'}