Skip to main content

A beginner's file secret encoder/decoder in Python

Project description

secret_to_file

A beginner's secret_to_file in Python

install

Linux&MacOS

Bash/Zsh

pip3 install secret_to_file

Windows

CMD/PowerShell

pip install secret_to_file

function

  • Secret(size:int, prefix:int)
  • Secret.convert(file1:str, file2:str, output:str) -> None

Exam

Example

import secret_to_file
secret = secret_to_file.Secret() #default size = 64, prefix = 1
#secret = secret_to_file.Secret(size = 256, prefix = 0) 256 byte
#secret = secret_to_file.Secret(size = 128) 128 kilobyte
#secret = secret_to_file.Secret(prefix = 2) 64 megabyte
secret.convert("origin.txt", "new.txt", "test_key")
secret.convert("new.txt", "test_key", "origin_decode.txt")

Output


License

This project is licensed under the terms of the MIT license.

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

secret_to_file-1.5.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

secret_to_file-1.5-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file secret_to_file-1.5.tar.gz.

File metadata

  • Download URL: secret_to_file-1.5.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for secret_to_file-1.5.tar.gz
Algorithm Hash digest
SHA256 bfaeadd007bc60d292b3bd3add30c74d39ffa4618eeb68b0d139fe1d9feeb469
MD5 ad6a60c538801ab28d8c0c7cb3153e55
BLAKE2b-256 1ec3515567f56c59bc86b841a41e984f2b91141773c05982782da88e8ebf5894

See more details on using hashes here.

File details

Details for the file secret_to_file-1.5-py3-none-any.whl.

File metadata

  • Download URL: secret_to_file-1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for secret_to_file-1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 98f26e47e95bdaeb111dfa723dc556f02fa25a8f5e1e8e0fd3949d3ea08d5e52
MD5 9b11e7c77e7996a53c911d43a222b888
BLAKE2b-256 b206f0ec2ae27f3cd269e781b1fa3bf3aaded0039c03cbd00cd7756d14fa1531

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