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: '1034794865931313209319476356433810484230696922116622570447916199637083692613496856815611408194909606000471556888940851180191317568419429555159733002373752597261893082346945485472928674861277479275965944367990933042959515483926909671974251173252636378004463550473332085243486136424184995315902982820433694753314659538129878140982099875183395357211933017653932434599931443908791098235860480125694110470929018150747041361121354035416831438300093778364159089487993658838910874415242763505368167814004427363345578453962417321749036909068894571320007365936483913052808713558489871875226622176018048989176718568103928384553050925090888232902095348920714637263361971419758703587775539370065829949816512433435326154642285916814313767466843827619508500679696673930991990443825343159051947505252557500718266008585922766745801585236874556743585569491709631207590603997821893085573599841982362121299644094236231553149870086002247006549845272208354508835035548647581398680591702561172725622916958756732500863790247413745064889038583283116481418905730297652523021395271531071899363155891226088857622448001072785225138983599097405925885316425973516155960788834804269490221576733233217616012968259524724044079384913961811451984611922219562136549143958002466978719768203815700682027839839513814486234009544079419831703792402140099868840053585870254832664459790037006001095802053845993298946887220911847656542819157468630907435466192963622893743299866676809559639771204833603076921232541802447107967054136954513094873018304551592319155133431765294389311442700237226639968613426859568685116322404217135343639866346114661154218202406946975706936116144139506754491647957289776977875260720378865930362232406950342170921004212331092166478397905729833319560596931599821330274586005618105404481486253707620999585482504789013351647897319816241094681600099264583010234772512621771233809187823742343462011584923409550806896997166922491121551709524315067821947533537162457301590371757810073012343765429599736630066174319281918083305278853022926402960116389016256335028259966184666318423661618572130863823926256376513806089217558127114731160181841220805420846721669228818441930066082254989093499106045664081272596465507807369647857081836223708643429631662528250742970496260398361466066227253412602595191667216875837272339510123564274637464460601129597587358688746494089423536707157631565452884226027790242235140495891574286121365261755367886779107381512491521715715297974102464577173149619103739259', q: '517397432965656604659738178216905242115348461058311285223958099818541846306748428407805704097454803000235778444470425590095658784209714777579866501186876298630946541173472742736464337430638739637982972183995466521479757741963454835987125586626318189002231775236666042621743068212092497657951491410216847376657329769064939070491049937591697678605966508826966217299965721954395549117930240062847055235464509075373520680560677017708415719150046889182079544743996829419455437207621381752684083907002213681672789226981208660874518454534447285660003682968241956526404356779244935937613311088009024494588359284051964192276525462545444116451047674460357318631680985709879351793887769685032914974908256216717663077321142958407156883733421913809754250339848336965495995221912671579525973752626278750359133004292961383372900792618437278371792784745854815603795301998910946542786799920991181060649822047118115776574935043001123503274922636104177254417517774323790699340295851280586362811458479378366250431895123706872532444519291641558240709452865148826261510697635765535949681577945613044428811224000536392612569491799548702962942658212986758077980394417402134745110788366616608808006484129762362022039692456980905725992305961109781068274571979001233489359884101907850341013919919756907243117004772039709915851896201070049934420026792935127416332229895018503000547901026922996649473443610455923828271409578734315453717733096481811446871649933338404779819885602416801538460616270901223553983527068477256547436509152275796159577566715882647194655721350118613319984306713429784342558161202108567671819933173057330577109101203473487853468058072069753377245823978644888488937630360189432965181116203475171085460502106165546083239198952864916659780298465799910665137293002809052702240743126853810499792741252394506675823948659908120547340800049632291505117386256310885616904593911871171731005792461704775403448498583461245560775854762157533910973766768581228650795185878905036506171882714799868315033087159640959041652639426511463201480058194508128167514129983092333159211830809286065431911963128188256903044608779063557365580090920610402710423360834614409220965033041127494546749553022832040636298232753903684823928540918111854321714815831264125371485248130199180733033113626706301297595833608437918636169755061782137318732230300564798793679344373247044711768353578815782726442113013895121117570247945787143060682630877683943389553690756245760857857648987051232288586574809551869629'}