Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

aroundthecode / pycryptodome   python

Repository URL to install this package:

Version: 3.7.2 

/ Cipher / ARC4.pyi

from typing import Any, Union, Iterable

Buffer = Union[bytes, bytearray, memoryview]

class ARC4Cipher:
    block_size: int
    key_size: int

    def __init__(self, key: Buffer, *args: Any, **kwargs: Any) -> None: ...
    def encrypt(self, plaintext: Buffer) -> bytes: ...
    def decrypt(self, ciphertext: Buffer) -> bytes: ...

def new(key: Buffer, drop : int = ...) -> ARC4Cipher: ...

block_size: int
key_size: Iterable[int]