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: '796616501189192830510183928211441651884378921386271113005322671617741106805258406165259018636881123415002138178399227047814761091798095050123778063598404709875212154555525345197835264581955851762435936906285921590850067031623365988652530825803221721682946163951650211375997272340677904595304686760311107486055441947192570796563946311958750822651477835225191373844096483802473617976018927050558967180714143298749821543444533410705111486636899818584952547223745497872393292066308943971876846590752428314158730328199380486320062838122862912209736222521733429533621694275539625815651657258397651135893878974723200832925447676408788829266132618422360917200972054541007595523288321041863887262805144347770678642287339857654050228594074820646649921249624887359781043715227639804409832867553702071009400409517390995975841743983036907800472097330955469963750823150849299207167809181839168198435193800076916439990922761327304604003014215735288759134169201714398556145290216338600673113487701610703828642887221573292714190070192489747751992620086805372780153802896595319895778211453800348542968617183432357441759036637283818746330155805111173511789186318545984145939971968305558508900288766921999614837641450369414502967340176576511787310573115913449289469761196268620824203717819371578863327660852469473965017658791388366612826829014197899334486649412491058624651422735991045121146151239591722753594944462912033094528479834568511965331445073177755744071127527942186107556354966918696396980895842182501648246851097825664611959818060695327456024279025412500355114778061826603744859876100693755047471522375807380507438209082758742263246877610753923564444066016775658443627535502489069965804363573172802366877836313107535905394569354559053322789619317037909615750490806636614150136165737328716378510860495973590674851126344634752203516420020427287769593115490819190034294564114577664780303510953167695952691768323758328912905364334573076533540165890784033376295417689659341924005217040192524892203404434093307334018072432304447662052419130267977702385413241892854628985042819360716808724059687714165405546890337123581092031544877688529624677626214762585622140305601682986673448210198415170013402904891362506953484874339473086366330199203205665274395330792377359043646998321611500920682214035389098038085376100733994570481944073810392551570137557183479548645794790135971171707540522250909166823566952649245401848674705055396931733439589013791047716378393510532726831515947880302059', q: '398308250594596415255091964105720825942189460693135556502661335808870553402629203082629509318440561707501069089199613523907380545899047525061889031799202354937606077277762672598917632290977925881217968453142960795425033515811682994326265412901610860841473081975825105687998636170338952297652343380155553743027720973596285398281973155979375411325738917612595686922048241901236808988009463525279483590357071649374910771722266705352555743318449909292476273611872748936196646033154471985938423295376214157079365164099690243160031419061431456104868111260866714766810847137769812907825828629198825567946939487361600416462723838204394414633066309211180458600486027270503797761644160520931943631402572173885339321143669928827025114297037410323324960624812443679890521857613819902204916433776851035504700204758695497987920871991518453900236048665477734981875411575424649603583904590919584099217596900038458219995461380663652302001507107867644379567084600857199278072645108169300336556743850805351914321443610786646357095035096244873875996310043402686390076901448297659947889105726900174271484308591716178720879518318641909373165077902555586755894593159272992072969985984152779254450144383460999807418820725184707251483670088288255893655286557956724644734880598134310412101858909685789431663830426234736982508829395694183306413414507098949667243324706245529312325711367995522560573075619795861376797472231456016547264239917284255982665722536588877872035563763971093053778177483459348198490447921091250824123425548912832305979909030347663728012139512706250177557389030913301872429938050346877523735761187903690253719104541379371131623438805376961782222033008387829221813767751244534982902181786586401183438918156553767952697284677279526661394809658518954807875245403318307075068082868664358189255430247986795337425563172317376101758210010213643884796557745409595017147282057288832390151755476583847976345884161879164456452682167286538266770082945392016688147708844829670962002608520096262446101702217046653667009036216152223831026209565133988851192706620946427314492521409680358404362029843857082702773445168561790546015772438844264812338813107381292811070152800841493336724105099207585006701452445681253476742437169736543183165099601602832637197665396188679521823499160805750460341107017694549019042688050366997285240972036905196275785068778591739774322897395067985585853770261125454583411783476324622700924337352527698465866719794506895523858189196755266363415757973940151029'}