Benign lua Download

bint 0.5.2-1

Lua long hex string literals
SHA-256fecce1415c7e5c8f894ec57f2323fdbec38fea39adac4391ae788e91488ec74b
MaleculeH(Db)

Evidence

Lua long hex string literals tests.lua · lines 101–105
101:14… nt.type(bint(1)) == 'bint')
102
103 assert(tostring(bint.frombase('9223372036854775807')) == '9223372036854775807')
104 assert(tostring(bint.frombase('-9223372036854775808')) == '-9223372036854775808')
105 assert(b …
Lua long hex string literals rsa.lua · lines 32–54
32:4… eturn inv
33end
34
35-- 1. Choose two distinct primes
36local p = bint('5011956100955230700919988831')
37local q = bint('5989833698158308593254005067')
38print('p = ' .. tostring(p))
39print('q = ' .. tostring(q))
40
41-- 2. Compute n = p * q
42local n = p * q
43print('n = ' .. tostring(n))
44assert(n == bint('30020783547191766561527759475184666413598963507657406677'))
45
46-- 3. Compute the totient
47local phi_n = lcm(p - 1, q - 1)
48print('phi_n = ' .. tostring(phi_n))
49assert(phi_n == bint('5003463924531961093587959910697146102414237368913902130'))
50
51-- 4. Choose any number e that 1 < e < phi_n and is coprime to phi_n
52local e = bint('65537')
53print('e = ' .. tostring(e))
54
Makefile all target Makefile · lines 16–30
16:9… :
17 rm -f *.out
18 lua -lluacov tests.lua
19 luacov
20
21clean:
22 rm -f *.out
23
24install:
25 luarocks make --local
26
⋯4 lines
MIT license permission grant sentence LICENSE · lines 1–6
1The MIT License (MIT)
2
3Copyright (c) 2020-2024 Eduardo Bart (https://github.com/edubart)
4
5Permission is hereby granted, free of charge, to any person obtaining a copy
6of this software and associated documentation f …

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.