Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("sha")
- write("Enter wallet password: ")
- local pw1 = read("*")
- write("Confirm password: ")
- local pw2 = read("*")
- assert(pw1 == pw2, "Passwords do not match")
- local key = sha.digest("KRISTWALLET" .. pw1):toHex() .. "-000"
- local f = fs.open("/privatekey", "w")
- f.write(key)
- f.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement