GET api/v2/GeneRSAKeys?plaintext={plaintext}&keysize={keysize}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
plaintext | string |
Required |
|
keysize | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of ResultName | Description | Type | Additional information |
---|---|---|---|
Data | ResultResponse |
None. |
|
Status | string |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Data": { "EncyptedText": "sample string 1", "PlainText": "sample string 2", "PublicKey": "sample string 3", "PrivateKey": "sample string 4", "Key": "sample string 5", "Encryption": "sample string 6" }, "Status": "sample string 1", "Message": "sample string 2" }, { "Data": { "EncyptedText": "sample string 1", "PlainText": "sample string 2", "PublicKey": "sample string 3", "PrivateKey": "sample string 4", "Key": "sample string 5", "Encryption": "sample string 6" }, "Status": "sample string 1", "Message": "sample string 2" } ]
text/html
Sample:
[{"Data":{"EncyptedText":"sample string 1","PlainText":"sample string 2","PublicKey":"sample string 3","PrivateKey":"sample string 4","Key":"sample string 5","Encryption":"sample string 6"},"Status":"sample string 1","Message":"sample string 2"},{"Data":{"EncyptedText":"sample string 1","PlainText":"sample string 2","PublicKey":"sample string 3","PrivateKey":"sample string 4","Key":"sample string 5","Encryption":"sample string 6"},"Status":"sample string 1","Message":"sample string 2"}]
application/xml, text/xml
Sample:
<ArrayOfResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EasyWelcome.WebApi.Tools"> <Result> <Data> <Encryption>sample string 6</Encryption> <EncyptedText>sample string 1</EncyptedText> <Key>sample string 5</Key> <PlainText>sample string 2</PlainText> <PrivateKey>sample string 4</PrivateKey> <PublicKey>sample string 3</PublicKey> </Data> <Message>sample string 2</Message> <Status>sample string 1</Status> </Result> <Result> <Data> <Encryption>sample string 6</Encryption> <EncyptedText>sample string 1</EncyptedText> <Key>sample string 5</Key> <PlainText>sample string 2</PlainText> <PrivateKey>sample string 4</PrivateKey> <PublicKey>sample string 3</PublicKey> </Data> <Message>sample string 2</Message> <Status>sample string 1</Status> </Result> </ArrayOfResult>