Monday, 26 August 2013

Ruby - Generating prime numbers for Websocket encryption

Ruby - Generating prime numbers for Websocket encryption

pI'm creating a WebSocket Server in Ruby, and I would like to encrypt the
string messages between the server and the client. I can't afford a
certificate, so I was thinking that I would create an encryption algorithm
using modulo./p pI need to generate large prime numbers for this
algorithm. I know that Ruby has a built in function for Primes, but I'm
not sure if it can generate 50 to 60 digit numbers. Is the built in
function for Primes good for this?/p pIf anyone can offer a better way of
encrypting my WS messages for free (and decrypt on the other side) I would
also accept that :)/p

No comments:

Post a Comment