Found 21 packages
The ultimate file-extension & mime-type library with over 14,000+ signatures. Quickly detect extensions & mime types from a stream or byte array using magic numbers (file headers) and magic words. A default signature library is included and can be expanded using Mime-Detective.Definitions.Condensed (common signatures) or Mime-Detective.Definitions.Exhaustive (14,000+ signatures).
FileTypeChecker is a easy to use library that provides quality identification of a file type. This will help you to secure your applications and validate all files that are provided by external sources with few lines of code.
An exhaustive library of over 14,000 file signatures for use by the "Mime-Detective" package.
Math helper slots for Magic, giving you some basic math functionality, such as the ability to add, subtract, multiply, increment and decrement numbers from Hyperlambda. To use package go to https://polterguy.github.io
A condensed library of +100 common file signatures for use by the "Mime-Detective" package.
Don't let users to inject you an invalid file! FileTypeChecker is a easy to use library that allows you to read file and recognize its type. This will help you to validate all files that is provided by external sources.
File type checker that checks the file's magic numbers/identifying bytes. Useful for verifying uploaded files in web applications. NuGet package of code originally written by https://github.com/mjolka and extended to allow for dependency injecting the known file types.
Adds functionality to determine files by their Magic Numbers
A simple library to detect mimetype of a file, stream or buffer array via magic numbers in the header content. It contains over 480 samples that as hardcoded in the library. Detect mimetype of an extension string or mimetype string like “rar”, “exe”,” image/gif” …. It is possible to add more mimetypes in the library to detect files related to them. In fact, this library finds the mimetype via magic numbers.
netstandard library for detecting file types by 'magic numbers', similar to the `file` command in Linux/Unix. Useful for validating file uploads instead of trusting file extensions.
A library for identifying file types from a user-configurable collection of files' magic numbers.
A library designed to simplify file type detection. By utilizing magic numbers to identify file types within your C# projects you can safely determine file types, rather than relying on file extensions which can be changed.
Don't let users to inject you an invalid file! FileTypeChecker is a easy to use library that allows you to read file and recognize its type. This will help you to validate all files that is provided by external sources.
Provides analyzers for validating that: * Tabs are used for indentation. * Lengths of lines, methods, properties, and files are acceptable. * #regions are used within long files and files that contain multiple types. * Method blocks use a single return. * File names match the names of types they contain. * Preferred exception types are used. * Magic numbers aren't used. * Using directives are indented consistently. * Flags enum members are zero, powers of two, or named member combinations. * UTC times are used. * TryGetValue is used instead of ContainsKey and this[key]. * Preferred terms are used in identifiers.
Provides analyzers for validating that: * Tabs are used for indentation. * Lengths of lines, methods, properties, and files are acceptable. * #regions are used within long files and files that contain multiple types. * Method blocks use a single return. * File names match the names of types they contain. * Preferred exception types are used. * Magic numbers aren't used. * Using directives are indented consistently. * Flags enum members are zero, powers of two, or named member combinations. * UTC times are used.
Package Description
讀取檔案中的 signatures(magic numbers or Magic Bytes) 來跟附檔名比較是否符合
netstandard library for detecting file types by 'magic numbers', similar to the `file` command in Linux/Unix. Useful for validating file uploads instead of trusting file extensions.
Centralized file validation library: MIME detection via magic numbers, filename policy, size/ext/MIME checks, optional security heuristics (zip safety, executables, image dimensions), SHA-256 hashing, and DI integration.
dingu is an angularjs-style dependency injection framework for JavaScript. It makes it easy to define modules, singletons and constants that are assembled at runtime when needed. Features: - Bring in dependencies simply by naming them as a function parameter - Load your javascript files in any arbitrary order - Store singleton instances - Store constant values like settings and magic numbers - Protects against circular dependencies - Can be locked to prevent further updates at runtime