<div dir="ltr">Hi All,<div><br></div><div>What is the importance of mentioning the algorithm type in the POST call , since we already have the secret.</div><div>Are we trying the encrypt the actual secret using the algorithm mentioned in the POST call .If yes what is the key that is used to encrypt the secret since we require the algorithm, key and actual information(payload) to encrypt the any information.</div><div><br></div><div>For ex : Consider the POST CALL below with algorithm aes</div><div><pre style="overflow:auto;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:13.6000003814697px;margin-top:0px;margin-bottom:0px;font-stretch:normal;line-height:1.45;padding:16px;border-radius:3px;word-wrap:normal;word-break:normal;color:rgb(51,51,51);background-color:rgb(247,247,247)">POST v1/secrets
Header<span class="" style="color:rgb(167,29,93)">:</span> content<span class="" style="color:rgb(167,29,93)">-</span>type<span class="" style="color:rgb(167,29,93)">=</span>application/json
X<span class="" style="color:rgb(167,29,93)">-</span>Project<span class="" style="color:rgb(167,29,93)">-</span>Id<span class="" style="color:rgb(167,29,93)">:</span> {project_id}
{
<span class="" style="color:rgb(24,54,145)"><span class="">"</span>name<span class="">"</span></span><span class="" style="color:rgb(167,29,93)">:</span> <span class="" style="color:rgb(24,54,145)"><span class="">"</span>AES key<span class="">"</span></span>,
<span class="" style="color:rgb(24,54,145)"><span class="">"</span>expiration<span class="">"</span></span><span class="" style="color:rgb(167,29,93)">:</span> <span class="" style="color:rgb(24,54,145)"><span class="">"</span>2014-02-28T19:14:44.180394<span class="">"</span></span>,
<span class="" style="color:rgb(24,54,145)"><span class="">"</span>algorithm<span class="">"</span></span><span class="" style="color:rgb(167,29,93)">:</span> <span class="" style="color:rgb(24,54,145)"><span class="">"</span>aes<span class="">"</span></span>,
<span class="" style="color:rgb(24,54,145)"><span class="">"</span>bit_length<span class="">"</span></span><span class="" style="color:rgb(167,29,93)">:</span> <span class="" style="color:rgb(0,134,179)">256</span>,
<span class="" style="color:rgb(24,54,145)"><span class="">"</span>mode<span class="">"</span></span><span class="" style="color:rgb(167,29,93)">:</span> <span class="" style="color:rgb(24,54,145)"><span class="">"</span>cbc<span class="">"</span></span>,
<span class="" style="color:rgb(24,54,145)"><span class="">"</span>payload<span class="">"</span></span><span class="" style="color:rgb(167,29,93)">:</span> <span class="" style="color:rgb(24,54,145)"><span class="">"</span>gF6+lLoF3ohA9aPRpt+6bQ==<span class="">"</span></span>,
<span class="" style="color:rgb(24,54,145)"><span class="">"</span>payload_content_type<span class="">"</span></span><span class="" style="color:rgb(167,29,93)">:</span> <span class="" style="color:rgb(24,54,145)"><span class="">"</span>application/octet-stream<span class="">"</span></span>,
<span class="" style="color:rgb(24,54,145)"><span class="">"</span>payload_content_encoding<span class="">"</span></span><span class="" style="color:rgb(167,29,93)">:</span> <span class="" style="color:rgb(24,54,145)"><span class="">"</span>base64<span class="">"</span></span>,
<span class="" style="color:rgb(24,54,145)"><span class="">"</span>secret_type<span class="">"</span></span><span class="" style="color:rgb(167,29,93)">:</span> <span class="" style="color:rgb(24,54,145)"><span class="">"</span>opaque<span class="">"</span></span>
}</pre><div><br></div><div>What are the different algorithms supported in this POST CALL.</div><div>Any Help would be appreciated .Thanks in advance </div>-- <br><div class="gmail_signature"><div><em>Thanks and Regards</em></div>
<div><em>Asha Seshagiri</em></div></div>
</div></div>