Rate This Document
Findability
Accuracy
Completeness
Readability

Non-SM Algorithm Detection

Command Function

Detects non-SM algorithms in Java code and locates related code.

Syntax

1
devkit doctor crypt-scan {-d INPUT_PATH | --directory  INPUT_PATH} [-o OUTPUT_PATH | --output OUTPUT_PATH] [-h | --help]

Parameter Description

Table 1 Parameter description

Parameter

Option

Description

-h/--help

-

Obtains help information.

-d/--directory

-

Path of the folder to be scanned (only Java source code is supported). Only one path is allowed.

-o/--output

-

Path for storing scan reports. By default, scan reports are stored in the doctor/report/crypt_scan/Timestamp path. A report name is the format of Feature name_Timestamp.

Example

The following describes how to scan the source code in the RuoYi-master folder. Replace the example path with the actual one.

1
devkit doctor crypt-scan -d /home/software/RuoYi-master/

The following information is displayed and a report is generated:

1
2
3
4
5
6
Started to parse non-SM algorithms.
current process : ################################# [100%]
Started to matching non-SM algorithms.
current process : ################################# [100%]
The parsing is successful and the report generation starts.
Excel report is created successfully. Files are located in /usr/local/devkit/doctor/report/crypt_scan/20240822195509

A scan report is generated. The report displays the source file path, line number, source code (call sites), start index, end index, traceback status, and assignment points. The traceback status indicates whether to trace back to the assignment points.