2
0
mirror of https://github.com/gchq/CyberChef synced 2025-12-17 16:53:45 +00:00

Updated Automatic detection of encoded data using CyberChef Magic (markdown)

n1474335
2019-09-04 15:23:14 +01:00
parent 1dc17e89dd
commit 350ace0e79

@@ -6,12 +6,12 @@ Many common data encoding schemes, such as Base64, Hexadecimal and Gzip, have pr
Example regular expression for Base64 data using the standard alphabet: Example regular expression for Base64 data using the standard alphabet:
```regex ```regex
/^(?:[A-Z\\d+/]{4})+(?:[A-Z\\d+/]{2}==|[A-Z\\d+/]{3}=)?$/i /^(?:[A-Z\d+/]{4})+(?:[A-Z\d+/]{2}==|[A-Z\d+/]{3}=)?$/i
``` ```
Example regular expression for Base64 data using the y64 alphabet: Example regular expression for Base64 data using the y64 alphabet:
```regex ```regex
/^(?:[A-Z\\d._]{4}){5,}(?:[A-Z\\d._]{2}--|[A-Z\\d._]{3}-)?$/i /^(?:[A-Z\d._]{4}){5,}(?:[A-Z\d._]{2}--|[A-Z\d._]{3}-)?$/i
``` ```
### Speculative execution ### Speculative execution