Skip to content

A repository for python to encode a file with a password. it works perfectly with pytorch model weights.

License

Notifications You must be signed in to change notification settings

MR3z4/FileEncoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FileEncoder

A repository for python to encode a file with a password. it works perfectly with pytorch model weights.

Usage

import io
from encoder import AESCipher
enc = AESCipher('123456789')
enc.encrypt_file('test.pth')
decoded_bytes = ec.decrypt_file('test.enc')
import torch
torch.load(io.BytesIO(decoded_bytes))

About

A repository for python to encode a file with a password. it works perfectly with pytorch model weights.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages