Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Bumped version #112

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright © 2023 traperto GmbH
Copyright © 2024 traperto GmbH

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
6 changes: 3 additions & 3 deletions MagicBytesValidator/MagicBytesValidator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<PropertyGroup>
<PackageId>MagicBytesValidator</PackageId>
<Title>traperto GmbH</Title>
<Description>Validate files based on mimetypes, extensions and magicbytes.</Description>
<Version>2.0.1</Version>
<Authors>Members of traperto gmbh</Authors>
<Description>Validate files based on mime types, file extensions and magic byte sequences.</Description>
<Version>2.0.2</Version>
<Authors>Members of traperto GmbH</Authors>
<PackageProjectUrl>https://github.com/Traperto/magic-bytes-validator/blob/main/README.md</PackageProjectUrl>
<PackageTags>mime mimetype mimetypes magic magicbyte magicbytes extension extensions file
fileextension traperto trapertoGmbh
Expand Down
74 changes: 37 additions & 37 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ The existing `FileTypes` can be expanded in various ways.
- Install nuget package into your project:

```powershell
Install-Package MagicBytesValidator -Version 2.0.0
Install-Package MagicBytesValidator -Version 2.0.2
```

```bash
dotnet add package MagicBytesValidator --version 2.0.0
dotnet add package MagicBytesValidator --version 2.0.2
```

- Reference in your csproj:
```xml
<PackageReference Include="MagicBytesValidator" Version="2.0.0" />
<PackageReference Include="MagicBytesValidator" Version="2.0.2" />
```

### How to use it?
Expand Down Expand Up @@ -132,41 +132,41 @@ This can be useful when debugging or validating newly added FileTypes.

### List of Filetypes

| Mimetype | Extension | Magicbytes (decimal) |
|-------------------------------------------------|--------------------------------------------|----------------------------------------------------------------------------------------------------------------------------|
| audio/x-pn-realaudio-plugin | rpm | 237 171 238 219 |
| application/octet-stream | bin<br />file<br />com<br />class<br />ini | <ul><li>83 80 48 49</li><li>201</li><li>202 254 186 190</li></ul> |
| video/3gpp | 3gp | 102 116 121 112 51 103 |
| image/x-icon | ico | 0 0 1 0 |
| image/gif | gif | <ul><li>71 73 70 56 55 97</li><li>71 73 70 56 57 97</li></ul> |
| image/tiff | tif<br />tiff | <ul><li>73 73 42 0</li><li>77 77 0 42</li></ul> |
| Mimetype | Extension | Magicbytes (decimal) |
|-------------------------------------------------|--------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------|
| audio/x-pn-realaudio-plugin | rpm | 237 171 238 219 |
| application/octet-stream | bin<br />file<br />com<br />class<br />ini | <ul><li>83 80 48 49</li><li>201</li><li>202 254 186 190</li></ul> |
| video/3gpp | 3gp | 102 116 121 112 51 103 |
| image/x-icon | ico | 0 0 1 0 |
| image/gif | gif | <ul><li>71 73 70 56 55 97</li><li>71 73 70 56 57 97</li></ul> |
| image/tiff | tif<br />tiff | <ul><li>73 73 42 0</li><li>77 77 0 42</li></ul> |
| image/jpeg | jpg<br />jpeg<br />jpe | <ul><li>255 216 255 219</li><li>255 216 255 224 0 16 74</li><li>70 73 70 0 1</li><li>255 216 255 238</li><li>105 102 0 0</li></ul> |
| image/png | png | 137 80 78 71 13 10 26 10 |
| video/ogg | ogg<br />ogv | 79 103 103 83 |
| audio/basic | snd<br />au | <ul><li>56 83 86 88</li><li>65 73 70 70</li></ul> |
| application/dsptype | tsp | 77 90 |
| text/plain | txt | <ul><li>239 187 191</li><li>255 254</li><li>254 255</li><li>255 254 0 0</li></ul> |
| application/zip | zip | 80 75 3 4 |
| application | docx<br />xlsx | 80 75 7 8 |
| application/vnd.oasis.opendocument.presentation | odp | 80 75 7 8 |
| application/vnd.oasis.opendocument.spreadsheet | ods | 80 75 7 8 |
| application/vnd.oasis.opendocument.text | odt | 80 75 7 8 |
| audio/mpeg | mp3 | 73 68 51 |
| image/bmp | bmp | 66 77 |
| audio/x-midi | midi<br />mid | 77 84 104 100 |
| application/msword | doc<br />dot | 208 207 17 224 161 177 26 255 |
| application/msexcel | xlx<br />xla | 208 207 17 224 161 177 26 255 |
| application/mspowerpoint | ppt<br />ppz<br />pps<br />pt | 208 207 17 224 161 177 26 225 |
| application/gzip | gz | 31 139 |
| video/webm | webm | 26 69 223 163 |
| application/rtf | rtf | 123 92 114 116 102 49 |
| text/tab-separated-values | tsv | 71 |
| video/mpeg | mpg<br />mpeg<br />mpe | <ul><li>71</li><li>0 0 1 186</li><li>0 0 1 179</li></ul> |
| video/mp4 | mp4 | <ul><li>102 116 121 112 105 115 111 109</li><li>102 116 121 112 109 112 52 50</li><li>102 116 121 112 77 83 62 86</li></ul>|
| image/x-portable-bitmap | pbm | 80 49 10 |
| image/x-portable-graymap | pgm | 80 50 10 |
| image/x-portable-pixmap | ppm | 80 51 10 |
| application/pdf | pdf | 25 50 44 46 |
| image/png | png | 137 80 78 71 13 10 26 10 |
| video/ogg | ogg<br />ogv | 79 103 103 83 |
| audio/basic | snd<br />au | <ul><li>56 83 86 88</li><li>65 73 70 70</li></ul> |
| application/dsptype | tsp | 77 90 |
| text/plain | txt | <ul><li>239 187 191</li><li>255 254</li><li>254 255</li><li>255 254 0 0</li></ul> |
| application/zip | zip | 80 75 3 4 |
| application | docx<br />xlsx | 80 75 7 8 |
| application/vnd.oasis.opendocument.presentation | odp | 80 75 7 8 |
| application/vnd.oasis.opendocument.spreadsheet | ods | 80 75 7 8 |
| application/vnd.oasis.opendocument.text | odt | 80 75 7 8 |
| audio/mpeg | mp3 | 73 68 51 |
| image/bmp | bmp | 66 77 |
| audio/x-midi | midi<br />mid | 77 84 104 100 |
| application/msword | doc<br />dot | 208 207 17 224 161 177 26 255 |
| application/msexcel | xlx<br />xla | 208 207 17 224 161 177 26 255 |
| application/mspowerpoint | ppt<br />ppz<br />pps<br />pt | 208 207 17 224 161 177 26 225 |
| application/gzip | gz | 31 139 |
| video/webm | webm | 26 69 223 163 |
| application/rtf | rtf | 123 92 114 116 102 49 |
| text/tab-separated-values | tsv | 71 |
| video/mpeg | mpg<br />mpeg<br />mpe | <ul><li>71</li><li>0 0 1 186</li><li>0 0 1 179</li></ul> |
| video/mp4 | mp4 | <ul><li>102 116 121 112 105 115 111 109</li><li>102 116 121 112 109 112 52 50</li><li>102 116 121 112 77 83 62 86</li></ul> |
| image/x-portable-bitmap | pbm | 80 49 10 |
| image/x-portable-graymap | pgm | 80 50 10 |
| image/x-portable-pixmap | ppm | 80 51 10 |
| application/pdf | pdf | _multiple_ |

### What is the licence?

Expand Down
Loading