I used rsa-json.native to generate RSA keys for a node.js application that will use secure-peer later to connect two clients with each other. Now I have 2 questions:
- In secure-peer/index.js I've found
defaultCiphers = ['RC4']
- is this acceptable? I've heard that RC4 is broken. - Are my example RSA keys flawed? They contain the same data at the end and beginning of the keys.
RSA-Key #1:
-----BEGIN RSA PUBLIC KEY-----
MIGJAoGBALJWTxyvIedsbg4QffU7vqvBlsHR8w6dfN19bSMiVjdSPoU2mKGN+n/Ck5gTPrWK
zz64JRrLWE7pYsd1YF1RQIbh8eUUNA3cUmVpuAdfolwpE3ixFlaYRgwGjwkaONoGerP9p1SS
VUCwuEfgmS14n5x9AQ/3HJVICQTb/2dryQqFAgMBAAE=
-----END RSA PUBLIC KEY-----
-----BEGIN RSA PRIVATE KEY-----
MIICWwIBAAKBgQCyVk8cryHnbG4OEH31O76rwZbB0fMOnXzdfW0jIlY3Uj6FNpihjfp/wpOY
Ez61is8+uCUay1hO6WLHdWBdUUCG4fHlFDQN3FJlabgHX6JcKRN4sRZWmEYMBo8JGjjaBnqz
/adUklVAsLhH4JkteJ+cfQEP9xyVSAkE2/9na8kKhQIDAQABAoGAJpEtyLlDLsYvQtFkPA2w
nXpfPQlHdCiw4UGHwapiVNJvfOWiuoV23/xXaPL4g9BCI4E1XQcO0Pn+B76lmWjB+EvVLTnw
SM0M/coY73mOT/Suc51OKG+cd9HnYjNe9hzwkbIwX73AcgyWRGYt0NAPbAFBM/xxLPNzSeyo
othjFYECQQD9BD/HDwbNycu3mhPOlhPU605xcZnWb2IOcSWoNb6zlq4JcVXXR/Nb1R4qPSBU
s+thdtc6Lpk+0Fr/iQaJ9f3hAkEAtHCiTQbsDBlR8ypCfau2CmHZ8nLMlYhtarzfcJ5PJZ0d
zQOVdcdivC5gIGs0t6+UH4KKbFBPSvuNH+pwZbx5JQJAAaj7eiThGIyQZ539L0fQzX7VvuzN
45hLfmjDpHzlyWvdrHYv5/+y2xFk50YLZkLf8n3DH8CahMz9K9wMTO9uQQJAeS6D8dNKSD3h
C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