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: '845304781095503501587361764157328653469543704734138511089061273346183990645367244608691482208183331447806890448587500096339115794616447638673621387148709250440534776438467982826607379785595111605849930021513360275378367499446426616539983434132213229258846877427987165809292349573497564447694583990463968572624466363478889866027073141090191128496862155603971093687074007329901465635983087087088899623854827430240627855466875027999831581712321221136865938319700462272145554635716263749505271181147822250850009463358240881476530253100733244440099608890921645306207519716666901066794225843422166601156825683345498692880388277574580817271488004646863442505384414555701920295677365012542373153981045635766055679022793408740876387919264474786522395189655785637484264499112367427589834718904058099394871977204482794759190045089708141640036568419126477113717312495217829658847002132607629399863173775870619380373818831945802555377586362337184042406701132066751005254737916966001529136862345563977978489480694303962210664573574204706916921152684138798696197927369479583022558333366705274022786244847542895230617262613987667675263810362603354397500029127693412958108412438123929814643079115299151693833518354919401231727433719097955128058416116222096358332598810750751715150282897680989664872936633658144923435854619541830300934615919830847857621558547740061480253580291639812371267465801142264609320451746411002729168186036779743495666366500971084306342742298607569015854573641928688950954202091648800073633581034661736374083916257443884367197314301945814295024812787226246434232484997494601151468736004854317242321594204688584993815529135249427807971971080235714978493166333563425685240557649470526861127131585991185470537786492271901807588740449666332037922178981265065200170410954274541015908687856035249292911911733429010049522130560973335239093405651695094482847240366048358032158729903042864565800606515454398392891523742807023888244681875075516648528890127566148456119798218957768843082280611151018634570331014765645154996785783452194077359821789650490792421331250509194561620071296367762896881550232349529750573125504913842050530114877004244660743971911216380883364182386846387218920675197961254589522637681287278691837328416447241155372556549677231556214588315387953187237712430784077211499815024132091634441305255180894013772713658185702622597917932288101579299789099992845455936959858858956858362942221620444497028154422215879638952232377294951164301596785440978799', q: '422652390547751750793680882078664326734771852367069255544530636673091995322683622304345741104091665723903445224293750048169557897308223819336810693574354625220267388219233991413303689892797555802924965010756680137689183749723213308269991717066106614629423438713993582904646174786748782223847291995231984286312233181739444933013536570545095564248431077801985546843537003664950732817991543543544449811927413715120313927733437513999915790856160610568432969159850231136072777317858131874752635590573911125425004731679120440738265126550366622220049804445460822653103759858333450533397112921711083300578412841672749346440194138787290408635744002323431721252692207277850960147838682506271186576990522817883027839511396704370438193959632237393261197594827892818742132249556183713794917359452029049697435988602241397379595022544854070820018284209563238556858656247608914829423501066303814699931586887935309690186909415972901277688793181168592021203350566033375502627368958483000764568431172781988989244740347151981105332286787102353458460576342069399348098963684739791511279166683352637011393122423771447615308631306993833837631905181301677198750014563846706479054206219061964907321539557649575846916759177459700615863716859548977564029208058111048179166299405375375857575141448840494832436468316829072461717927309770915150467307959915423928810779273870030740126790145819906185633732900571132304660225873205501364584093018389871747833183250485542153171371149303784507927286820964344475477101045824400036816790517330868187041958128721942183598657150972907147512406393613123217116242498747300575734368002427158621160797102344292496907764567624713903985985540117857489246583166781712842620278824735263430563565792995592735268893246135950903794370224833166018961089490632532600085205477137270507954343928017624646455955866714505024761065280486667619546702825847547241423620183024179016079364951521432282900303257727199196445761871403511944122340937537758324264445063783074228059899109478884421541140305575509317285165507382822577498392891726097038679910894825245396210665625254597280810035648183881448440775116174764875286562752456921025265057438502122330371985955608190441682091193423193609460337598980627294761318840643639345918664208223620577686278274838615778107294157693976593618856215392038605749907512066045817220652627590447006886356829092851311298958966144050789649894549996422727968479929429478429181471110810222248514077211107939819476116188647475582150798392720489399'}