file_signature 1.0.1 copy "file_signature: ^1.0.1" to clipboard
file_signature: ^1.0.1 copied to clipboard

A pure Dart security utility that validates files by checking Magic Byte signatures. Prevents rename attacks (e.g. .exe as .png) on Mobile, Web, and Desktop.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add file_signature

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  file_signature: ^1.0.1

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:file_signature/file_signature.dart';
4
likes
160
points
160
downloads

Publisher

verified publisherflutterdude.com

Weekly Downloads

A pure Dart security utility that validates files by checking Magic Byte signatures. Prevents rename attacks (e.g. .exe as .png) on Mobile, Web, and Desktop.

Repository (GitHub)
View/report issues

Topics

#security #files #upload #validation #magic-bytes

Documentation

API reference

License

MIT (license)

Dependencies

cross_file, flutter

More

Packages that depend on file_signature