RapidIdentity Product Guides - 2019 Rolling Release

Encrypt Value

A SOAP call to encrypt a given cleartext value, using "name" as the salt. The response returns a hexadecimal string representing the encrypted value.

POST /ValidateService.asmx

REQUEST:

    curl
      --request POST
      --url http://<MFAServerHostname>/ValidateService.asmx
      --header 'content-type: text/xml'
      --data '<soap12:Envelope
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"
      >
        <soap12:Body>
          <EncryptValue xmlns="http://<MFAServerHostname>">
            <name>string</name>
            <cleartextValue>theStringToEncrypt</cleartextValue>
            <apiKey>string</apiKey>
          </EncryptValue>
        </soap12:Body>
      </soap12:Envelope>'
  

BODY:

    <soap12:Body>
      <EncryptValue xmlns="http://<MFAServerHostname>/">
        <name>string</name>
        <cleartextValue>theStringToEncrypt</cleartextValue>
        <apiKey>string</apiKey>
      </EncryptValue>
    </soap12:Body>
  

RESPONSE 200 OK:

    HTTP/1.1 200 OK
    Content-Type: application/soap+xml;
    charset=utf-8
    Content-Length: length
    <?xml version="1.0" encoding="utf-8"?>
    <soap12:Envelope
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"
    >
      <soap12:Body>
        <EncryptValueResponse xmlns="http://cm.2fa.com/">
          <EncryptValueResult>string</EncryptValueResult>
        </EncryptValueResponse>
      </soap12:Body>
    </soap12:Envelope>