Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging in new Cryptography module #654

Merged
merged 32 commits into from
Sep 23, 2024
Merged

Merging in new Cryptography module #654

merged 32 commits into from
Sep 23, 2024

Conversation

digininja
Copy link
Owner

No description provided.

@digininja digininja merged commit 947d5d3 into master Sep 23, 2024
2 checks passed
$soo_plaintext .= '"bio": "I won The Weakest Link"}';

print "Sooty Plaintext\n";
var_dump ($sooty_plaintext);

Check warning

Code scanning / PHP Security Audit

Unsafe var_dump. Warning

Unsafe var_dump.
var_dump ($sooty_plaintext);
$sooty_ciphered = encrypt($sooty_plaintext, $key);
print "Sooty Ciphertext\n";
var_dump (bin2hex($sooty_ciphered));

Check warning

Code scanning / PHP Security Audit

Unsafe var_dump. Warning

Unsafe var_dump.
print "\n";

print "Sweep Plaintext\n";
var_dump ($sweep_plaintext);

Check warning

Code scanning / PHP Security Audit

Unsafe var_dump. Warning

Unsafe var_dump.
var_dump ($sweep_plaintext);
$sweep_ciphered = encrypt($sweep_plaintext, $key);
print "Sweep Ciphertext\n";
var_dump (bin2hex($sweep_ciphered));

Check warning

Code scanning / PHP Security Audit

Unsafe var_dump. Warning

Unsafe var_dump.
print "\n";

print "Soo Plaintext\n";
var_dump ($soo_plaintext);

Check warning

Code scanning / PHP Security Audit

Unsafe var_dump. Warning

Unsafe var_dump.
$html .= '<div class="warning">' . $errors . '</div>';
}

if ($messages != "") {

Check warning

Code scanning / PHP Security Audit

Type "" for $messages is always string(). Warning

Type "" for $messages is always string().
$ret_obj = make_call ($token, $zeroing, $url);

print "Response from server:\n";
var_dump ($ret_obj);

Check warning

Code scanning / PHP Security Audit

Unsafe var_dump. Warning

Unsafe var_dump.
}
} catch (Exception $exp) {
print "Hack failed, system could not decrypt message\n";
var_dump ($exp);

Check warning

Code scanning / PHP Security Audit

Unsafe var_dump. Warning

Unsafe var_dump.
$encoded = (xor_this($clear, $key));
$b64_encoded = base64_encode ($encoded);
print "Encoded text\n";
var_dump ($b64_encoded);

Check warning

Code scanning / PHP Security Audit

Unsafe var_dump. Warning

Unsafe var_dump.
$b64_decoded = base64_decode ($b64_encoded);
$decoded = xor_this($b64_decoded, $key);
print "Decoded text\n";
var_dump ($decoded);

Check warning

Code scanning / PHP Security Audit

Unsafe var_dump. Warning

Unsafe var_dump.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant