Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
gg.alert('snap')
by Gazi2006, 4 months ago
Please
log in
to post a comment.
PAID HACK PuBG
PAID HACK PuBG
hack
BasicTablePrinter
Creating habits v3, Lua
Lua recursion with function
Lua Angle Cheatsheet
Monty Hall Problem Simulated
hij
Truly random numbers (Lua)
gg.alert('snap')
by Gazi2006, 4 months agoPlease log in to post a comment.