Skip to content

pongsakorn-dev/Cybersecurity_Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Cybersecurity_Project 523441

สมาชิกกลุ่ม

นายพงศกร มาประโคน รหัสนักศึกษา B6005795

นายณัฐวัตร นารินทร์ รหัสนักศึกษา B6015695

เข้ารหัสแบบ AES

run

Encryption

  • cd allfile
  • python AES_encryption.py
  • เลือก method 1
  • พิมพ์ชื่อไฟล์ที่ต้องการเข้ารหัสพร้อมทั้งนามสกุลไฟล์

Decryption

  • cd allfile
  • python AES_encryption.py
  • เลือก method 2
  • พิมพ์ชื่อไฟล์ที่ต้องการถอดรหัสพร้อมทั้งนามสกุลไฟล์

Signing Signature

  • แก้ไขชื่อไฟล์ที่ต้องการทำ Signature ใน Signing_Signature.py
  • ทำได้เฉพาะไฟล์ที่มีข้อความในไฟล์ที่สามารถทำ message digest ได้

Verify Signature

  • แก้ไขชื่อไฟล์ที่ต้องการทำ Authentication ใน Verify.py

  • กำหนดส่ง 31 มกราคม 2563

  • ให้นักศึกษาเขียนโปรแกรมเข้ารหัสและถอดรหัสข้อความหรือไฟล์ ด้วยภาษา C/Python/Java/JavaScript เป็นต้น

  • ข้อกำหนด

  • • โปรแกรมจะใช้ AES ที่มี Key ขนาด 256 bits เข้ารหัสข้อความ (เอาเฉพาะ text มาเข้ารหัส) และไฟล์อื่น (เช่น PDF, JPG, Doc เป็นต้น)

  • • IV (Initialization vector) สำหรับ AES ใช้เป็น Random

  • • สามารถถอดรหัสกลับมาเป็นไฟล์เดิมได้ (มี function หรือ method ทั้งเข้ารหัสและถอดรหัส)

  • • ดังนั้นจะมีไฟล์ text 1 ไฟล์ และไฟล์ประเภทอื่น 1 ไฟล์ โดย

    1. ไฟล์ text จะมีข้อความเป็น รหัสนักศึกษา และชื่อสกุล ให้เอาแค่ข้อความในไฟล์ text มาเข้ารหัส พร้อมทำ Digital signature ด้วย RSA ที่มี Key ขนาด 2048 bits (สร้าง Digital signature ให้ใช้ SHA256 และเซ็นด้วย Private key)
    1. ไฟล์อื่นๆ (เช่น PDF, JPG, Doc เป็นต้น) ให้เข้ารหัสไฟล์นั้นทั้งก้อน และไม่ต้องทำ Digital signature
  • สิ่งที่ต้องส่ง

    1. Source code
    1. ผลการ hash ข้อความ
    1. Signature ของข้อความ
    1. ไฟล์ต้นฉบับทั้ง 2 ไฟล์
    1. ไฟล์หลังเข้ารหัส (ถ้าไฟล์ text ให้ระบุข้อความที่ถูกเข้ารหัส)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages