Skip to main content

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.

Metadata

Release files for secret-to-file 1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for secret-to-file 1.5
File Size Uploaded
secret_to_file-1.5.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for secret-to-file 1.5
File Interpreter ABI Platform
secret_to_file-1.5-py3-none-any.whl Python 3 none any Details

Total release size: 6.1 kB

Release files / secret_to_file-1.5.tar.gz

Download URL secret_to_file-1.5.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
bfaeadd007bc60d292b3bd3add30c74d39ffa4618eeb68b0d139fe1d9feeb469
BLAKE2b-256 checksum
How to use checksums
1ec3515567f56c59bc86b841a41e984f2b91141773c05982782da88e8ebf5894
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / secret_to_file-1.5-py3-none-any.whl

Download URL secret_to_file-1.5-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
98f26e47e95bdaeb111dfa723dc556f02fa25a8f5e1e8e0fd3949d3ea08d5e52
BLAKE2b-256 checksum
How to use checksums
b206f0ec2ae27f3cd269e781b1fa3bf3aaded0039c03cbd00cd7756d14fa1531
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release history Release notifications | RSS feed

This release

1.5 This release

2 release files

1.4

2 release files

1.3

2 release files

1.2

2 release files

1.1

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page