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: '618966029931342392403553321827638995523037701639596306350994078397385726453838668622948751204454098029612927696916525342403452047254024009403244009918271924847574953217002068222311844172084063458980965860023341414839323570762839072417546777392162331246114729267617498619402853290952756684622306874532603206513854543918180407510569053597401961619153031066307988036841737264031038876460199981151917884002631284243143942801244904574669563661781326600976605610424037923213879925022745879330172309605832816692169706263892360657626210844045752120721313941333279895898143160109798876294542054168037396210082933510043439758567191284089137419851804141947300680258425982324274152796542813511644662886118360334428515563842603351344086132589239407536960380863122235953244546680279958259220269492166615029681578719153542757990690824903827197564379022421492382253485044662129276517678977456062084263758841984919821190660628688593994272097935545218723737945849016508188135702895006919013413924424511368037267317141217919063585693348054756547259438509345151920071012557631959749148284141746001190319865088772479187519800867369015112830149528374533322912752108653533093445566068697802851735804092904986510225033121140612147701916599439368589796645784395107378372656146738803027360784635412259646649986608686999095278615473439258180868678472330326448710558779992186390312734119869079351032716514429372759890141750961465688780758094810080561276954058389673663257584195493085323376443819759344172404427215164316318457421949785198867013714870763271636460894022797312449122884873729598720650127097045540334859372528429127244255545884342880033017894706643464036424907638835406381069474920286835534400075017559015704253084913637089283149036516293877783938052738393903053832059609635362177277304490530335618367634988621351472222495582769363236616422515448571272816197880094985897176720111095293510941966140658835789706382710983795868270370525142825424336495199643178732338732449595211581593352861884619386657715411784662130444046023287740299872179567430324759756780680155464976176133160734786165501566211764969126887036389396894115211032570186964642927575678625458411535174584024653829264243264890954410778346804495314823029267920203667811750337498123623187174142477687317252737833487649224759914486581233047302389819536315306546033886397221895809566597097467983371563080743415400797504303158973339920233060258895782448543735953683087600898724130551655481264849085547496641129581931285432019', q: '309483014965671196201776660913819497761518850819798153175497039198692863226919334311474375602227049014806463848458262671201726023627012004701622004959135962423787476608501034111155922086042031729490482930011670707419661785381419536208773388696081165623057364633808749309701426645476378342311153437266301603256927271959090203755284526798700980809576515533153994018420868632015519438230099990575958942001315642121571971400622452287334781830890663300488302805212018961606939962511372939665086154802916408346084853131946180328813105422022876060360656970666639947949071580054899438147271027084018698105041466755021719879283595642044568709925902070973650340129212991162137076398271406755822331443059180167214257781921301675672043066294619703768480190431561117976622273340139979129610134746083307514840789359576771378995345412451913598782189511210746191126742522331064638258839488728031042131879420992459910595330314344296997136048967772609361868972924508254094067851447503459506706962212255684018633658570608959531792846674027378273629719254672575960035506278815979874574142070873000595159932544386239593759900433684507556415074764187266661456376054326766546722783034348901425867902046452493255112516560570306073850958299719684294898322892197553689186328073369401513680392317706129823324993304343499547639307736719629090434339236165163224355279389996093195156367059934539675516358257214686379945070875480732844390379047405040280638477029194836831628792097746542661688221909879672086202213607582158159228710974892599433506857435381635818230447011398656224561442436864799360325063548522770167429686264214563622127772942171440016508947353321732018212453819417703190534737460143417767200037508779507852126542456818544641574518258146938891969026369196951526916029804817681088638652245265167809183817494310675736111247791384681618308211257724285636408098940047492948588360055547646755470983070329417894853191355491897934135185262571412712168247599821589366169366224797605790796676430942309693328857705892331065222023011643870149936089783715162379878390340077732488088066580367393082750783105882484563443518194698447057605516285093482321463787839312729205767587292012326914632121632445477205389173402247657411514633960101833905875168749061811593587071238843658626368916743824612379957243290616523651194909768157653273016943198610947904783298548733991685781540371707700398752151579486669960116530129447891224271867976841543800449362065275827740632424542773748320564790965642716009'}