Skip to content

Commit

Permalink
Fix examples in README
Browse files Browse the repository at this point in the history
  • Loading branch information
manicmaniac committed Aug 19, 2022
1 parent 1f81c86 commit 13d4ff2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ Usage
.. code:: python
>>> from arc4 import ARC4
>>> arc4 = ARC4('key')
>>> cipher = arc4.encrypt('some plain text to encrypt')
>>> arc4 = ARC4(b'key')
>>> cipher = arc4.encrypt(b'some plain text to encrypt')
Because RC4 is a stream cipher, you must initialize RC4 object in the beginning of each operations.

.. code:: python
>>> arc4 = ARC4('key')
>>> arc4 = ARC4(b'key')
>>> arc4.decrypt(cipher)
b'some plain text to encrypt'
Expand Down

0 comments on commit 13d4ff2

Please sign in to comment.