Skip to content
/ waxing Public

JS package to decrypt password-protected Office documents

License

Notifications You must be signed in to change notification settings

seald/waxing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Apr 25, 2022
12b5994 · Apr 25, 2022

History

54 Commits
Apr 25, 2022
Nov 21, 2019
Nov 7, 2019
May 25, 2020
Mar 25, 2021
Apr 25, 2022
Sep 27, 2019
Apr 25, 2022
Mar 25, 2021
Nov 26, 2019
Apr 25, 2022
May 25, 2020
Apr 25, 2022
Apr 25, 2022

Repository files navigation

Waxing

waxing is a JS packages that decrypts password-protected Office documents.

decryptOLEDoc(buffer: Buffer, password: String): Promise<Buffer>

This function takes a Buffer representing a password-protected Office document, a String containing the password, and returns a Buffer corresponding to the decrypted document.

In case the input Buffer corresponds to a non-encrypted Office document, it is returned as is.

In case the input Buffer is not an Office document at all, the promise is rejected with an Error.

isOLEDoc(buffer: Buffer): Boolean

This function takes a Buffer, and returns a Boolean indicating whether or not this is an encrypted Office document.