Skip to main content
GET
/
v2
/
cryptography
/
algorithms
/
component
Get cryptographic algorithms associated with a single software component.
curl --request GET \
  --url http://api.scanoss.com/v2/cryptography/algorithms/component
{
  "component": {
    "purl": "pkg:github/scanoss/engine",
    "requirement": ">=5.0.0",
    "version": "5.0.0",
    "algorithms": [
      {
        "algorithm": "AES",
        "strength": "Strong"
      },
      {
        "algorithm": "RSA",
        "strength": "Strong"
      }
    ]
  },
  "status": {
    "status": "SUCCESS",
    "message": "Algorithms Successfully retrieved"
  }
}

Query Parameters

purl
string
required

Package URL identifying the component to analyze.

requirement
string

Version constraint for component resolution when PURL lacks explicit version.

Response

A successful response.

Success example. For error cases, the component block reports the processing status via info_message and info_code. Example: {"component":{"purl":"pkg:github/unknown/component","requirement":">=1.0.0","version":"","algorithms":[],"info_message":"Component not found in database","info_code":"COMPONENT_NOT_FOUND"},"status":{"status":"SUCCESS","message":"Request processed"}}

component
object

Cryptographic algorithm information for a specific component identified by PURL and version.

Contains comprehensive algorithm details including detected algorithms and their strength classifications for software components.

status
object

Detailed response details.