Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- define('KEYSIZE', 2048);
- echo "-----BEGIN RSA PRIVATE KEY-----\n";
- $msg = "\nHaha you really thought I would be dumb enough to upload my SSH/SSL private key to my homedir? ".
- "Get real you lame script kiddies!\n";
- $raw = openssl_random_pseudo_bytes( ceil( (KEYSIZE - strlen($msg)) / 2) - 2 ) .
- $msg .
- openssl_random_pseudo_bytes( floor( (KEYSIZE - strlen($msg)) / 2) - 1 );
- echo chunk_split( 'MIIE' . base64_encode($raw), 64);
- echo "-----END RSA PRIVATE KEY-----\n";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement