shortutil

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checksum

func Checksum(f string) string

Checksum calculates the short filename checksum for the given filename Based on: https://tomgalvin.uk/assets/8dot3-checksum.c Docs: https://tomgalvin.uk/blog/gen/2015/06/09/filenames/

func ChecksumOriginal

func ChecksumOriginal(f string) string

ChecksumOriginal calculates the checksum for the given filename using the older of Microsoft's two checksum algorithms. This function is my translation of the checksum algorithm contained in the leaked Windows 2003 Server source

func ChecksumWords

func ChecksumWords(fh io.Reader, paramRegex *regexp.Regexp) []wordlistRecord

ChecksumWords turns a list of words into a word/checksum map

func Gen8dot3

func Gen8dot3(file string, ext string) (bool, string, string)

Gen8dot3 returns the Windows short filename for a given filename (sans tilde)

func Run

func Run()

Run is the main entry point for using utuilities from the command line

Types

This section is empty.

Jump to

Keyboard shortcuts

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