Skip to main content

파일 암호화/복호화 도구 (File Encryption/Decryption Tool)

Project description

Slock (파이썬 파일 암호화 도구)

This tool provides secure file encryption and decryption capabilities, with special support for executing encrypted Python files.

이 도구는 안전한 파일 암호화/복호화 기능을 제공하며, 특히 암호화된 Python 파일을 실행할 수 있는 기능을 지원합니다.

Features (기능)

  • File encryption and decryption using Fernet (symmetric encryption)

  • Secure password-based key generation

  • Direct execution of encrypted Python files

  • User-friendly error messages

  • Command-line interface

  • Fernet(대칭 암호화)를 사용한 파일 암호화/복호화

  • 비밀번호 기반의 안전한 키 생성

  • 암호화된 Python 파일 직접 실행

  • 사용자 친화적인 오류 메시지

  • 명령줄 인터페이스

Installation (설치 방법)

pip install slock

Usage (사용 방법)

File Encryption (파일 암호화)

# Command format (명령어 형식)
slock encrypt <input_file> <output_file> <password>

# Example (예시)
slock encrypt secret.txt secret.txt.enc "my_secure_password"

File Decryption (파일 복호화)

# Command format (명령어 형식)
slock decrypt <input_file> <output_file> <password>

# Example (예시)
slock decrypt secret.txt.enc secret_decrypted.txt "my_secure_password"

Running Encrypted Python Files (암호화된 Python 파일 실행)

# Command format (명령어 형식)
slock-run <encrypted_file> <password>

# Example (예시)
slock-run script.py.enc "my_secure_password"

Secure Execution Process (안전한 실행 프로세스)

When running an encrypted Python file, Slock follows these secure steps:

암호화된 Python 파일을 실행할 때, Slock은 다음과 같은 안전한 단계를 거칩니다:

  1. Memory-based Decryption (메모리 기반 복호화)

    • The encrypted file is decrypted in memory only

    • No temporary files are written to disk

    • Original encrypted file remains unchanged

    • 암호화된 파일은 메모리에서만 복호화됩니다

    • 디스크에 임시 파일이 생성되지 않습니다

    • 원본 암호화 파일은 그대로 유지됩니다

  2. Secure Module Loading (안전한 모듈 로딩)

    • Decrypted code is loaded as a Python module

    • Code execution happens in a controlled environment

    • Memory is cleared after execution

    • 복호화된 코드는 Python 모듈로 로드됩니다

    • 코드 실행은 제어된 환경에서 이루어집니다

    • 실행 후 메모리는 자동으로 정리됩니다

  3. Password Protection (비밀번호 보호)

    • Password is required for each execution

    • Password is never stored or cached

    • Each run requires fresh authentication

    • 매 실행마다 비밀번호가 필요합니다

    • 비밀번호는 저장되거나 캐시되지 않습니다

    • 각 실행마다 새로운 인증이 필요합니다

Error Messages (오류 메시지)

The tool provides clear error messages in both English and Korean:

이 도구는 영어와 한국어로 명확한 오류 메시지를 제공합니다:

Wrong Password (잘못된 비밀번호)

[Error] Decryption failed
Cause: Invalid password entered
Solution: Please enter the exact password used for encryption

[오류] 복호화에 실패했습니다
원인: 잘못된 비밀번호를 입력하셨습니다
해결 방법: 암호화할 때 사용한 비밀번호를 정확히 입력해주세요

File Not Found (파일을 찾을 수 없음)

[Error] File not found
Cause: The specified file does not exist
Solution: Please check if the file path is correct

[오류] 파일을 찾을 수 없습니다
원인: 지정된 파일이 존재하지 않습니다
해결 방법: 파일 경로가 올바른지 확인해주세요

Security Notes (보안 참고사항)

  • Always use strong passwords

  • Keep your passwords secure

  • Encrypted files cannot be recovered without the correct password

  • 강력한 비밀번호를 사용하세요

  • 비밀번호를 안전하게 보관하세요

  • 암호화된 파일은 올바른 비밀번호 없이 복구할 수 없습니다

License (라이선스)

MIT License

Author (작성자)

cryingmiso

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sloth_lock-0.1.1.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sloth_lock-0.1.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file sloth_lock-0.1.1.tar.gz.

File metadata

  • Download URL: sloth_lock-0.1.1.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.16

File hashes

Hashes for sloth_lock-0.1.1.tar.gz
Algorithm Hash digest
SHA256 df49617e9364bfd55ebb13ae88a2441c9a325949fa2ed3f7c7f7da610f274643
MD5 604904fb8f5fe7349e92ee803bae03cc
BLAKE2b-256 6daae8ba9b75a1f2184ddc4cfc8f8e8d38f83618d8ba741fb07062aaecc5cd50

See more details on using hashes here.

File details

Details for the file sloth_lock-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: sloth_lock-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.16

File hashes

Hashes for sloth_lock-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5549bb49a9d8c835b01871662476bf72415c92a291ade690991767aaa50a33c6
MD5 62239cb8cb6fbebada04b14b070f4cbe
BLAKE2b-256 9651a63d58a3b4b360779c7e6c5eca01ee8be3d929debc8ac39e865de0753d3c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page