File: inline-encrypt

package info (click to toggle)
python-file-encryptor 0.2.9-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 168 kB
  • sloc: python: 102; makefile: 4
file content (15 lines) | stat: -rwxr-xr-x 297 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/python3

import os
from file_encryptor import convergence

filename = './tmpfile'

with open(filename, 'a') as f:
    f.write('Hello world')

key = convergence.encrypt_file_inline(filename, "rainbow dinosaur secret")

convergence.decrypt_file_inline(filename, key)

os.remove(filename)