crypto

package
v0.0.0-...-3f8e65d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Overview

Package crypto implements excel encryption algorithms from the MS-OFFCRYPTO design specs. Currently only standard/basic RC4 "obfuscation" is supported.

Index

Constants

This section is empty.

Variables

View Source
var DefaultXLSPassword = "VelvetSweatshop"

DefaultXLSPassword is the default Excel encryption password.

Functions

This section is empty.

Types

type Decryptor

type Decryptor interface {
	// SetPassword for the decryption.
	SetPassword(password []byte)

	// Read implements the io.Reader interface.
	Read(p []byte) (n int, err error)

	// Write implements the io.Writer interface.
	Write(p []byte) (n int, err error)

	// Bytes returns the decrypted data.
	Bytes() []byte

	// Flush tells the decryptor to decrypt the latest block.
	Flush()

	// Reset the decryptor, and clear all written and readable data.
	Reset()
}

Decryptor describes methods to decrypt an excel sheet.

func NewBasicRC4

func NewBasicRC4(data []byte) (Decryptor, error)

NewBasicRC4 implements the standard RC4 decryption.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL