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: '1033778882629696389198664086599029894807326865086847808535212252619587463938858926686270692492863420828777794435974889722970880730011054228818317067930564937391430346419374703627752608386026611427792534592688756849968660093738627030266743200534950962842403282241177677057639201030850589200490177153462733235909257371790577548188652280138319394171981132070757578013262137896242111645688772983529668380425359460314722792963866297112250840681100407980030944087856589204743829610646392016043253201918973600318578255383040002796413092173311472209150349713565452135961840482378459017049679108700421513229540518736355150786402239016224636022430223760539508279653956769646259842889560940429419911561987179575164180979491653739120337510793362985255345669253829711201595968760273686823066839182653954865478019168084409505249946396568500350881594989112533203879755430888218475105969034213627285874304400571959074011073063553741173029662456002330289102996807034856183126080781420729398840081208056276289000364402262340617346536507103164998714843075227652354803512495144711914279819692570351887258047984576569601645863710936031426424581500249273132359417459472065979906921092759882649198957652754037698465078695883562452543687498244075459526211478711993577434540662916268416443331089338418037779850853273834456623807430659625222365925519712642902869081201090662043004034257701647401799325481806499863614859007711353809139949816739810193839252346156925111785189562214946965709547505597105833839047053029841852974063543607247914605461354400190943480418998845990503674245075996324376961942150891737985185558791018024284160680576813329416737906566498542146902489659880967624772445409913090153941292701827541528629296644443979375845234756943580594419930172335888611077079489624460130345813288978139598878632679507897550641132705774224938537242691214432497706045797637251837623400442521790552082634215708304546521007458766357954300922005406853670601975219156251709789370684177763368697082557159049617211946840452950255744000483527401784074815005684120227417444896776217115112629963025681771555795949720844835089123498049273184480064222106862093340538909395372335728320208785583735464093996756648766981063588567407043210869736956061467982735922561847559538076544459015317710389457940418792262809412735231757427229785859195361266716179463296997643535748287849415604941206957817317607659825132368584714095694924546855487655761184532650761080170906117899081671258107670654889062137466932283', q: '516889441314848194599332043299514947403663432543423904267606126309793731969429463343135346246431710414388897217987444861485440365005527114409158533965282468695715173209687351813876304193013305713896267296344378424984330046869313515133371600267475481421201641120588838528819600515425294600245088576731366617954628685895288774094326140069159697085990566035378789006631068948121055822844386491764834190212679730157361396481933148556125420340550203990015472043928294602371914805323196008021626600959486800159289127691520001398206546086655736104575174856782726067980920241189229508524839554350210756614770259368177575393201119508112318011215111880269754139826978384823129921444780470214709955780993589787582090489745826869560168755396681492627672834626914855600797984380136843411533419591326977432739009584042204752624973198284250175440797494556266601939877715444109237552984517106813642937152200285979537005536531776870586514831228001165144551498403517428091563040390710364699420040604028138144500182201131170308673268253551582499357421537613826177401756247572355957139909846285175943629023992288284800822931855468015713212290750124636566179708729736032989953460546379941324599478826377018849232539347941781226271843749122037729763105739355996788717270331458134208221665544669209018889925426636917228311903715329812611182962759856321451434540600545331021502017128850823700899662740903249931807429503855676904569974908369905096919626173078462555892594781107473482854773752798552916919523526514920926487031771803623957302730677200095471740209499422995251837122537998162188480971075445868992592779395509012142080340288406664708368953283249271073451244829940483812386222704956545076970646350913770764314648322221989687922617378471790297209965086167944305538539744812230065172906644489069799439316339753948775320566352887112469268621345607216248853022898818625918811700221260895276041317107854152273260503729383178977150461002703426835300987609578125854894685342088881684348541278579524808605973420226475127872000241763700892037407502842060113708722448388108557556314981512840885777897974860422417544561749024636592240032111053431046670269454697686167864160104392791867732046998378324383490531794283703521605434868478030733991367961280923779769038272229507658855194728970209396131404706367615878713614892929597680633358089731648498821767874143924707802470603478908658803829912566184292357047847462273427743827880592266325380540085453058949540835629053835327444531068733466141'}