-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Conversation
$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
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
print "\n"; | ||
|
||
print "Sweep Plaintext\n"; | ||
var_dump ($sweep_plaintext); |
Check warning
Code scanning / PHP Security Audit
Unsafe var_dump. Warning
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
print "\n"; | ||
|
||
print "Soo Plaintext\n"; | ||
var_dump ($soo_plaintext); |
Check warning
Code scanning / PHP Security Audit
Unsafe var_dump. Warning
$html .= '<div class="warning">' . $errors . '</div>'; | ||
} | ||
|
||
if ($messages != "") { |
Check warning
Code scanning / PHP Security Audit
Type "" for $messages is always string(). Warning
$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
} | ||
} 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
$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
$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
No description provided.