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.4.tar.gz (1.9 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.4-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: secret_to_file-1.4.tar.gz
  • Upload date:
  • Size: 1.9 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.4.tar.gz
Algorithm Hash digest
SHA256 e9ac3ae9c2a2f207ac54567f7aef1e6c32257d8c7742f9bcf6fe9ade3400eac7
MD5 b008c93e1551429bee15fe7634c925f6
BLAKE2b-256 b8b62a050bc79aa9f84eae9babfc449503069ea188cdf122c2ebf50b5d92c381

See more details on using hashes here.

File details

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

File metadata

  • Download URL: secret_to_file-1.4-py3-none-any.whl
  • Upload date:
  • Size: 3.2 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 17cfb431d04113ef5200a3697381eec497ca8324905d3be29147e39d49d05e3c
MD5 3909882503e37e9aac67cd2a6fa9b3b5
BLAKE2b-256 8f92b677a06d3ac8d6f05363b0a180ce77c6f81d6ed0018895605fb47b2dab80

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