Skip to content

ADFGVX ignores numbers #6

Description

@alpire

Testcase:

In [1]: from pycipher import ADFGVX

In [2]: ADFGVX().encipher('1')                                                                                                                                                                            
Out[2]: ''

I would expect the ciphertext to not be empty, as ADFGVX supports numbers.

I believe the issue was introduced here and here. Without the filter argument, remove_punctuation filters out any numbers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions