detect_crypto
Detect cryptographic algorithms (AES, RSA, SM2, SM3, SM4, HMAC, MD5, SHA) in JavaScript source code with evidence, key/IV tracking, and cipher mode identification.
Instructions
Detect cryptographic algorithms used in JavaScript source code. Identifies AES/RSA/SM2/SM3/SM4/HMAC/MD5/SHA family algorithms with evidence, key/IV source tracking, and cipher mode. Input: JS source code string. Returns list of detected crypto usages with algorithm type, location (line/col), evidence snippet, key source, IV source, and mode (CBC/ECB/GCM/CTR etc).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | JavaScript source code to analyze | |
| options | No | Detection options |