diff options
| -rw-r--r-- | README.rst | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -20,7 +20,7 @@ The Viewstate decoder accepts Base64 encoded .NET viewstate data and returns the There are two main ways to use this package. First, it can be used as an imported library with the following typical use case: -.. code-block:: pycon +.. code-block:: python >>> from viewstate import ViewState >>> base64_encoded_viewstate = '/wEPBQVhYmNkZQ9nAgE=' @@ -30,7 +30,7 @@ There are two main ways to use this package. First, it can be used as an importe It is also possible to feed the raw bytes directly: -.. code-block:: pycon +.. code-block:: python >>> vs = ViewState(raw=b'\xff\x01....') @@ -44,7 +44,7 @@ Which will pretty-print the decoded data structure. 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:: pycon +.. code-block:: python >>> vs = ViewState(signed_view_state) >>> vs.decode() |
