While building web applications I'm wondering how long of a secret I need (how many bits) for serving as the key in encryption - and whether I can just mash out a random sequence of characters on my keyboard or if I need some special software to generate something for me?
(i.e. stealing the private RSA from something like ssh-keygen)
Update: I manly will be using this key with PHP's mcrypt library but am also interested in c++ options (both on linux).