Skip to content

小文件(1gb以内)文件加密 并且将文件名放在加密文件内,可以自释放,支持三端。

License

Notifications You must be signed in to change notification settings

uk0/file_encryption

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

file_encryption

初学 Rust 时候写的,可能对学习有一些用处。

info

# 将文件加密并且将文件名写在index = 0
# 支持 'https://github.com/substantic/rain' 

example

#lib_self_release.rs


 ./gui/bin/task_unix + type +' ' +Key + ' '+ SelectFile+ ' ' + savedir +' ' +platform
 
 ./gui/bin/task_unix e test123 /Users/firshme/testfile  /Users/firshme/Desktop/work/file_encryption/  1

build for linux target

  • mac dep install for linux target
brew tap SergioBenitez/osxct
brew install x86_64-unknown-linux-gnu

❯ vim ~/.cargo/config.toml
add the following lines:
[target.x86_64-unknown-linux-gnu]
linker = "x86_64-unknown-linux-gnu-gcc"

build for windows target

  • mac dep install for windows target
sudo port install x86_64-w64-mingw32-gcc

rustup target add x86_64-pc-windows-gnu
#                                                /toolchains/xxxxxxxx-apple-darwin/    
cp /opt/local/x86_64-w64-mingw32/lib/* ~/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-pc-windows-gnu/lib/

cargo build --target x86_64-pc-windows-gnu

build

 ./build.sh

macos

img

windows

img

About

小文件(1gb以内)文件加密 并且将文件名放在加密文件内,可以自释放,支持三端。

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published