curl --request GET \
--url http://api.scanoss.com/v2/cryptography/algorithms/componentimport requests
url = "http://api.scanoss.com/v2/cryptography/algorithms/component"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://api.scanoss.com/v2/cryptography/algorithms/component', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://api.scanoss.com/v2/cryptography/algorithms/component",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://api.scanoss.com/v2/cryptography/algorithms/component"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://api.scanoss.com/v2/cryptography/algorithms/component")
.asString();require 'uri'
require 'net/http'
url = URI("http://api.scanoss.com/v2/cryptography/algorithms/component")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"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"
}
}"<string>"{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}Get cryptographic algorithms associated with a single software component.
Analyzes the component and returns cryptographic algorithms detected in the codebase including algorithm names and strength classifications.
curl --request GET \
--url http://api.scanoss.com/v2/cryptography/algorithms/componentimport requests
url = "http://api.scanoss.com/v2/cryptography/algorithms/component"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://api.scanoss.com/v2/cryptography/algorithms/component', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://api.scanoss.com/v2/cryptography/algorithms/component",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://api.scanoss.com/v2/cryptography/algorithms/component"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://api.scanoss.com/v2/cryptography/algorithms/component")
.asString();require 'uri'
require 'net/http'
url = URI("http://api.scanoss.com/v2/cryptography/algorithms/component")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"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"
}
}"<string>"{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}Query Parameters
Package URL identifying the component to analyze.
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"}}
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.
Show child attributes
Show child attributes
Detailed response details.
Show child attributes
Show child attributes