public-key algorithm example-code.com