Skip to content

Safe Computing #18

@zachpeltz

Description

@zachpeltz

Popcorn Hack 1:

  • Name: user_session
  • Value: hTrkM5JdlI29MnSR2P
  • Expiration Date: 2026-07-23T09:58:21.TRJ3
  • First Party Cookie

Popcorn Hack 2:

  • In the captcha there are 3 boxes for the captcha (probably)
  • First in square 3x1
  • Second in square 2x2
  • Third in square 3x2

MCQ Popcorn Hack 1:

    1. Multiple forms of identity verification before granting access
    1. Asymmetric Encryption
    1. Personally Identifiable Information
    1. Respecting privacy policies and obtaining user consent before collecting data
    1. Symmetric Encryption
    1. Verify the legitimacy of the email by contacting the bank directly through official contact methods
    1. A scam where an attacker tricks users into providing personal information by pretending to be a trustworthy entity
    1. The software could contain malware or viruses that compromise the computer’s security
    1. Even if the public key is known, only the private key can decrypt the message
    1. Alice's public key

Code Popcorn Hack 2:

import random

def caesar_cipher(text, shift, mode):
result = ""
for char in text:
if char.isalpha(): # Encrypts only letters
shift_amount = shift if mode == "encrypt" else -shift
new_char = chr(((ord(char.lower()) - 97 + shift_amount) % 26) + 97)
result += new_char.upper() if char.isupper() else new_char
else:
result += char # Keeps spaces and non-letter characters unchanged
return result

mode = input("Do you want to encrypt or decrypt? ").strip().lower()
message = input("Enter your message: ")
shift_input = input("Enter shift value (number of places to shift, or type 'random'): ").strip().lower()

if shift_input == "random":
shift = random.randint(1, 25)
print(f"Random shift value used: {shift}")
else:
shift = int(shift_input)

output = caesar_cipher(message, shift, mode)
print(f"Result: {output}")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions