generate

RSA.generate(size) => RSA instance
RSA.generate(size, exponent) => RSA instance
Class Public methods

Generates an RSA keypair. size is an integer representing the desired key size. Keys smaller than 1024 should be considered insecure. exponent is an odd number normally 3, 17, or 65537.

doc_ruby_on_rails
2015-04-25 22:16:16
Comments
Leave a Comment

Please login to continue.