Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
RSA KEY GENERATOR (LUA)
--RSA KEY GENERATOR, ORIGINAL IDEA TITLED "RandomKeyGen (Lua)" --PLEASE IMSERT YOUR INPUT local keyLength = 800 --SCRIPT keyLength = keyLength - 4 local a=0 local b=0 local c=0 local d=nil local list = {1,2,3,4,5,6,7,8,9,"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","!","$","%","^","*","`","&",")","_","+","=","~","#","@","'","/",",",".",">","/","|"} local function KeyGen() for i=1,10,1 do a=math.random(1,10000) math.randomseed(os.time()) b=math.random(1,10000) math.randomseed(os.time()) c=math.random(1,10000) end math.randomseed(a*b-c+a-b*math.random(1,10000)-a) end KeyGen() d = list[math.random(1,82)] for i=1,keyLength -1,1 do --print(d) d = d .. list[math.random(1,82)] end print("-----BEGIN RSA PRIVATE KEY-----") print(d) print("-----END RSA PRIVATE KEY-----")
run
|
edit
|
history
|
help
0
test
test3
Enums in Lua (library)
855
test
sh
ok
123
Exponential from Two Points
cumulative probability