Skip to content

Bug in main.asm when we enter a large string then enter another string with lower size the encryption outputs wrong values  #47

@O-Gamal

Description

@O-Gamal

BUG in main.asm

main.asm have a bug: When we enter a large string then enter another string with lower size the encryption outputs wrong values because teaIn keeps the previously entered values in it.

Failed test cases:

Enter a string: MACAOSFDASDF
Enter 4 keys
Enter Key 1: 0
Enter Key 2: 0
Enter Key 3: 0
Enter Key 4: 0

Program Output:

19cda33cac8b2f8a0b3b4e6e65de01b3aa5080768160436e1cceffbf3bd01cd8a

✔️

Enter a string: q
Enter 4 keys
Enter Key 1: 0
Enter Key 2: 0
Enter Key 3: 0
Enter Key 4: 0

Program Output:

2471879ca6d34b0cc50300c29c5a1e40521c393586728480d83b94ac5a9a98d54

-------------------------------------------------------------------------------------------------------------------------

Expected Output:

The output of encryption of "q" with keys = 0 0 0 0 should be ±

3fb43006b1123a4d6f67e740a3c8b026c340f35a51018a437110825737ed6a563

✔️

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions