<commit_before><?php
/**
 * Created by PhpStorm.
 * User: harrisonchow
 * Date: 2/25/17
 * Time: 4:18 PM
 */

if($_SERVER['REQUEST_METHOD'] === 'GET' || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == "http")){
    header("HTTP/1.1 403 Forbidden");
    exit;
}

$masterKey = $_ENV['NOB_API'];
$pubKey = openssl_pkey_get_public("../key/public.pub");
$pubKeyData = openssl_pkey_get_details($pubKey);

openssl_public_encrypt("lol this is a test", $encrypted, $pubKey);
echo base64_encode($encrypted);<commit_msg>secret<commit_after><?php
/**
 * Created by PhpStorm.
 * User: harrisonchow
 * Date: 2/25/17
 * Time: 4:18 PM
 */

if($_SERVER['REQUEST_METHOD'] === 'GET' || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == "http")){
    header("HTTP/1.1 403 Forbidden");
    exit;
}

$masterKey = $_ENV['NOB_API'];
$pubKey = openssl_pkey_get_public(file_get_contents("../key/public.pub"));

openssl_public_encrypt("lol this is a test", $encrypted, $pubKey);
echo base64_encode($encrypted);
{'fraction_non_alphanumeric': 0.19373219373219372, 'fraction_numerical': 0.02849002849002849, 'mean_word_length': 6.026666666666666, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3996839', 'n_tokens_mistral': 418, 'n_tokens_neox': 399, 'n_words': 67}