Skip to content

look your AES.java:160 #2

@ghost

Description

if (line.matches("[0-9A-F]+")) //If line is valid (i.e. contains valid hex characters, encrpyt. Otherwise, skip line.

Check file is matches

========= my tests =====
`java
public class WhyCannotAESFile {

public static void main(String[] args) {

    String[] params = {"e", "-length", "128", "-mode", "ecb", "/home/liuyy/Documents/debuglog/a.key", "/home/liuyy/Documents/debuglog/ss.log"};
    try {
        AES.main(params);
    } catch (IOException e) {
        e.printStackTrace();
    } finally {
    }

}

}

`

a.key

3c6e0b8a9c15224a8228b9a98ca1531d

ss.log
HelloWorld Test Dot

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