strangerRidingCaml
1. Introduction to Cryptography 본문
Introduction to Cryptography
Historical Overview
Basic Cryptographic Concepts and Terminology
Security Goals
Confidentiality : Ensures that only authorized parties can access and understand the information.Integrity : Guarantees that the data remains unchanged and uncorrupted during transmission or storage.Authentication : Verifies the identity of communicating parties to prevent impersonation.Non-repudiation : Prevents individuals from denying their actions or transactions.
Cryptographic Adversaries and Threat Models
Laboratory Activities
Lab 1: Encryption and Decryption in Python
# Simple Caesar cipher implementation
def caesar_cipher(text, shift):
result = ""
for char in text:
if char.isalpha():
shift_amount = shift % 26
if char.islower():
shifted_char = chr((ord(char) - ord('a') + shift_amount) % 26 + ord('a'))
else:
shifted_char = chr((ord(char) - ord('A') + shift_amount) % 26 + ord('A'))
result += shifted_char
else:
result += char
return result
plaintext = "Hello World"
shift = 3
ciphertext = caesar_cipher(plaintext, shift)
print("Plaintext:", plaintext)
print("Ciphertext:", ciphertext)
This lab demonstrates a simple implementation of the
'Modern cryptography' 카테고리의 다른 글
6. Cryptographic Protocols (0) | 2024.05.06 |
---|---|
5. Hash Functions and Digital Signatures (0) | 2024.05.06 |
4. Public-Key Cryptography (0) | 2024.05.06 |
3. Symmetric Cryptography (0) | 2024.05.06 |
2. Classical Cryptography (0) | 2024.05.06 |