keygen.lua

-- generate a simple keyring
keyring = ECDH.new()
keyring:keygen()

-- export the keypair to json
export = JSON.encode(
   {
      public  = keyring: public():base64(),
	  private = keyring:private():base64()
   }
)
print(export)
generated by LDoc 1.4.3 Last updated 2018-10-01 18:53:47
]==]