GET api/v2/AESEncrypt?plaintext={plaintext}&key={key}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
plaintext

string

Required

key

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of Result
NameDescriptionTypeAdditional 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>