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: '1018006348490420681418895452616809951320203112786521609467258371991724608538042934451830167213323070264156781958686298310373986706462037732059667963404880010279661749085145232449316646384538729096974241877100730365014211526484530624034306042564239380318605882400438739942506219463767675912623343490930484920494699461387807856724469428796604424467399611599391867412154982712272895350596085112310586513574098759721519452424390087921611379817550137339989054806823542606185850891701781487648614254623776819553529629432078304527817323670444890222546025606445824473050881066562625049005078355663806648675192896476555019613700257493936620993986613386439085581504490989442375779421318754095617913357714547878821479137759375971333884401919529002016338358748812884373671823603536260754813519977246387723103400010978679622133102510961050741557493951473479886594262629467983903063749179948240160264747046142739861782335317222901438131906591397737317810978936347490715837168607448221865358961329984056423067509097012581778167783426369183576657754000685875343784587510198486853615339760955989288336030036160935010163950251194216378815652690074501525800065988206574427457130469434773833360551575153433303866166960826617785286295218385190348160806641931477393639177107802739232732968422748303381682957576101414567914890789697893236514452759897969280587993836286857464725458073056997989423422097511825858110723919806502350852224589158794583571609262168403460749100413562794055576992024801609571288487405857129855288034756243246615346187908361911785520919736474469150323029654256300414984975507592615328130366285245635802304982799269194478262446045540744913913196846814670922670748659124893120646203811313251412268048555061418717101333218924828098990012923482220673253308488723243230301546682783265325362601608733725264200490409116860370395021717475807474857747937623773634966140103024706261955125474358933135064362972314010926077312588564429203766201976731275872814028377707139221172413796225091352058981372699891064692739088982567785830747882120911512999785890335311107907971201681993755125335489703943479889698864595149887677978296838786234932161871306685944690415014463303196063530455487005290058058764524409934586658818699018818217196178662809623494861083030136840872964658075919456354188187142984948396863957128914946702444269371643157097498384729222039152055758338398242238306333186403986783139876133166094469106160387557695430938309112842028813007671209107217728067016080922147', q: '509003174245210340709447726308404975660101556393260804733629185995862304269021467225915083606661535132078390979343149155186993353231018866029833981702440005139830874542572616224658323192269364548487120938550365182507105763242265312017153021282119690159302941200219369971253109731883837956311671745465242460247349730693903928362234714398302212233699805799695933706077491356136447675298042556155293256787049379860759726212195043960805689908775068669994527403411771303092925445850890743824307127311888409776764814716039152263908661835222445111273012803222912236525440533281312524502539177831903324337596448238277509806850128746968310496993306693219542790752245494721187889710659377047808956678857273939410739568879687985666942200959764501008169179374406442186835911801768130377406759988623193861551700005489339811066551255480525370778746975736739943297131314733991951531874589974120080132373523071369930891167658611450719065953295698868658905489468173745357918584303724110932679480664992028211533754548506290889083891713184591788328877000342937671892293755099243426807669880477994644168015018080467505081975125597108189407826345037250762900032994103287213728565234717386916680275787576716651933083480413308892643147609192595174080403320965738696819588553901369616366484211374151690841478788050707283957445394848946618257226379948984640293996918143428732362729036528498994711711048755912929055361959903251175426112294579397291785804631084201730374550206781397027788496012400804785644243702928564927644017378121623307673093954180955892760459868237234575161514827128150207492487753796307664065183142622817901152491399634597239131223022770372456956598423407335461335374329562446560323101905656625706134024277530709358550666609462414049495006461741110336626654244361621615150773341391632662681300804366862632100245204558430185197510858737903737428873968811886817483070051512353130977562737179466567532181486157005463038656294282214601883100988365637936407014188853569610586206898112545676029490686349945532346369544491283892915373941060455756499892945167655553953985600840996877562667744851971739944849432297574943838989148419393117466080935653342972345207507231651598031765227743502645029029382262204967293329409349509409108598089331404811747430541515068420436482329037959728177094093571492474198431978564457473351222134685821578548749192364611019576027879169199121119153166593201993391569938066583047234553080193778847715469154556421014406503835604553608864033508040461073'}