summaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2018-04-12 11:57:00 +0300
committerYuval Adam <_@yuv.al>2018-04-12 11:57:00 +0300
commit549795396cc1810b3be9f2e603bc3498606fbdf9 (patch)
treebd40d606038040803617575f00d23bc501063ec7 /README.rst
parent862cf7418faa7757e507ecb2784a957df7ba7736 (diff)
Support raw bytes in CLI
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.rst b/README.rst
index a9573fc..46aaff5 100644
--- a/README.rst
+++ b/README.rst
@@ -42,6 +42,12 @@ Alternatively, the library can be used via command line by directly executing th
Which will pretty-print the decoded data structure.
+The command line usage can also accept raw bytes with the `-r` flag:
+
+.. code-block:: shell
+
+ $ cat data.base64 | base64 -d | python -m viewstate -r
+
Viewstate HMAC signatures are also supported. In case there are any remaining bytes after parsing, they are assumed to be HMAC signatures, with the types estimated according to signature length.
.. code-block:: python