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 2.5 kB
module.exports = { p: '1023943877445037953946732436639388730945497651186043882396297275039979601208612745014149156942933486718808454701506928247873101206524409356127794882230380011259842289697020737023877577948689365170543476376668152224719155646907681681991539169035012349781330637126321115150324559495012401052514043168483871820303499902945326089506802500689088944563852064597713843761414444659625788674194801960186023165954500422261018305097662808445992862595469345235709158038729952873673430935903578308830868674525521152875613853768152792775146842975753754940529404465858252058509996744534449697151524870104578080513356156078357777145030112004534367334478806540824672654325158458085522329398477163404998643239481611983762500135096816762633053853798983077548545878093982549098032340553110693342852534882982706436289374109033517912869839247192653320835760112947788755167270250955481695860968603584441295281854102088032119125463709956982672093326129936728821404107252337751651770261903669382369327411205792766827873887365817180485779950755912022514926781348558353314431956625099988985505567087708972106974677458095087605818121667061086078877902041186118080929919757025679320129699980568625369510815648641131530820465207508008101232435202311178924681366239', q: '511971938722518976973366218319694365472748825593021941198148637519989800604306372507074578471466743359404227350753464123936550603262204678063897441115190005629921144848510368511938788974344682585271738188334076112359577823453840840995769584517506174890665318563160557575162279747506200526257021584241935910151749951472663044753401250344544472281926032298856921880707222329812894337097400980093011582977250211130509152548831404222996431297734672617854579019364976436836715467951789154415434337262760576437806926884076396387573421487876877470264702232929126029254998372267224848575762435052289040256678078039178888572515056002267183667239403270412336327162579229042761164699238581702499321619740805991881250067548408381316526926899491538774272939046991274549016170276555346671426267441491353218144687054516758956434919623596326660417880056473894377583635125477740847930484301792220647640927051044016059562731854978491336046663064968364410702053626168875825885130951834691184663705602896383413936943682908590242889975377956011257463390674279176657215978312549994492752783543854486053487338729047543802909060833530543039438951020593059040464959878512839660064849990284312684755407824320565765410232603754004050616217601155589462340683119'}