msoffice
1.0.0
sudo apt install libssl-dev
bin/msoffice-crypt.exe
만드는 방법리눅스
mkdir work
git clone https://github.com/herumi/cybozulib
git clone https://github.com/herumi/msoffice
cd msoffice
make -j RELEASE=1
이전 OpenSSL 라이브러리를 사용하는 경우 make OLD_OPENSSL=1
.
창
mkdir work
git clone https://github.com/herumi/cybozulib
git clone https://github.com/herumi/msoffice
git clone https://github.com/herumi/cybozulib_ext # for openssl
cd msoffice
mk.bat ; or open msoffice12.sln and build
test
통해 encrypt test.xlsx. bin/msoffice-crypt.exe -e -p test test.xlsx enc.xlsx
test
통해 ENC.XLSX를 해독합니다. bin/msoffice-crypt.exe -d -p test enc.xlsx dec.xlsx
usage:msoffice-crypt.exe [opt] input output
-h : show this message
-p password in only ascii
-encMode 0:use AES128(default), 1: use AES256 for encoding
-ph8 password in utf8 hex. ex. 68656C6C6F for 'hello'
-ph16 password in utf16 hex. ex. u3042u3044u3046 for 'aiu' in hiragana
-k (experimental) secret key in hex. ex. 0123456789ABCDEF0123456789ABCDEF
-by (experimental) extract secret key from this file
-e encode
-d decode
-c spin count
-psk print secret key
-v print debug info
-vv print debug info and save binary data
PPTX, DOCX, XLSX 인 Office 2010 이상 사무실 문서 형식.
msoc.dll (Microsoft Office Crypto)
msoc.dll
msoc.h
pass
로 inFile
암호화하고 outFile
만듭니다.
MSOC_encrypt(outFile, inFile, pass, NULL);
pass
로 inFile
해독하고 outFile
만듭니다. MSOC_decrypt(outFile, inFile, pass, NULL);
inFile
, outFile
및 pass
의 유형은 const wchar_t*
(UTF-16 String)입니다. CSAMPLE 코드 및 파이썬 샘플 코드를 참조하십시오.
libmsoc.lib
pass
로 inFile
암호화하고 outFile
만듭니다.
MSOC_encryptA(outFile, inFile, pass, NULL);
pass
로 inFile
해독하고 outFile
만듭니다. MSOC_decryptA(outFile, inFile, pass, NULL);
inFile
, outFile
및 pass
의 유형은 const char*
(ASCII String)입니다. 미니 C 샘플 코드를 참조하십시오.
BSD 3-Clause 라이센스
Copyright (C) 2015 Cybozu Labs, Inc. 모든 권리 보유.