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: '895367210152864641509230257510182573768778539197732358584527691150990584390991917954837947865532494404048857646763135194712364349315127634843212661170746845644443987326156472883748757746190425143203631769486871166890339407058884605568324586124059151067154350841135789762866745428491792919492161945885074482735564606801568429834700020172610040215970994165377929163061373688643987164994533456272867285418244902836962736834976147258662880685848688716970200328030639794431090294437334460341521328440734650368595234054657450021074128251334920970337609077943941363505867195730258385072585335320199229737290427827977392844201139049157623565478234772018113758725298181904900888560123329050720729138569319455128355687226239694486094310167405601928000261515938490126358881119114726648814767953879184729625234998381080783963347605083802167899380401059883644381471473418710282654805724042975966757643596590600316903968264909095414449448474213130107022493997226988129701590168174403231441685461351229398337893303108602212630931604454945219865802609544510978306455250594978071778400678131237668946823840752120485141653328593696068902379514636318000606634169246407910044295852993647216329158104860418059836083770344551043942166909318640544043620008216672604231160420915439349391440189569067777347650044147917562564267733567527847070314447965874809016913438772476977892208198665524550115763318701517596331489613204711321940101144076319302937643680597166449763922821720524528470621641223689519886090324226541300288513645743944297162990783078427588505020956788952273453358809816310141559258005678283030368690148339889168033533010558110346466001197650539683496321749991869178882295597661292044166245887072757615222176352432084910402907611522582813111382484235199433039072669648081111527512880305159343024587241534347605430483008495294766932651933820328425416561044439164854355113542157442419338855952885740489911022046614645682216070678262039304904998383790071734660572817930137658105789555628105247655878401920354200919952347586786505995459525579592623840120753483188260847721010037013345238655625677369310714813144449555054964589832234866944749739449599695852620874220602627521440154419845686783483139560526832692935850803491355095234869424137008741781878475852588234007129350533010204275091287772615598032617637315805717031308972776005446941629778463982864564403240383231079075406819800669455922727618154343542327615029876391895927370337847408880527765134510302443088465568464055063', q: '447683605076432320754615128755091286884389269598866179292263845575495292195495958977418973932766247202024428823381567597356182174657563817421606330585373422822221993663078236441874378873095212571601815884743435583445169703529442302784162293062029575533577175420567894881433372714245896459746080972942537241367782303400784214917350010086305020107985497082688964581530686844321993582497266728136433642709122451418481368417488073629331440342924344358485100164015319897215545147218667230170760664220367325184297617027328725010537064125667460485168804538971970681752933597865129192536292667660099614868645213913988696422100569524578811782739117386009056879362649090952450444280061664525360364569284659727564177843613119847243047155083702800964000130757969245063179440559557363324407383976939592364812617499190540391981673802541901083949690200529941822190735736709355141327402862021487983378821798295300158451984132454547707224724237106565053511246998613494064850795084087201615720842730675614699168946651554301106315465802227472609932901304772255489153227625297489035889200339065618834473411920376060242570826664296848034451189757318159000303317084623203955022147926496823608164579052430209029918041885172275521971083454659320272021810004108336302115580210457719674695720094784533888673825022073958781282133866783763923535157223982937404508456719386238488946104099332762275057881659350758798165744806602355660970050572038159651468821840298583224881961410860262264235310820611844759943045162113270650144256822871972148581495391539213794252510478394476136726679404908155070779629002839141515184345074169944584016766505279055173233000598825269841748160874995934589441147798830646022083122943536378807611088176216042455201453805761291406555691242117599716519536334824040555763756440152579671512293620767173802715241504247647383466325966910164212708280522219582427177556771078721209669427976442870244955511023307322841108035339131019652452499191895035867330286408965068829052894777814052623827939200960177100459976173793393252997729762789796311920060376741594130423860505018506672619327812838684655357406572224777527482294916117433472374869724799847926310437110301313760720077209922843391741569780263416346467925401745677547617434712068504370890939237926294117003564675266505102137545643886307799016308818657902858515654486388002723470814889231991432282201620191615539537703409900334727961363809077171771163807514938195947963685168923704440263882567255151221544232784232027531'}