Search Results for

    Show / Hide Table of Contents

    Method EncryptString

    EncryptString(String, String, Int32)

    Encrypts a string and add a life time information to the encrypted string

    Declaration
    string EncryptString(string tenantName, string input, int lifeTimeSeconds)
    Parameters
    Type Name Description
    System.String tenantName

    Optional: Tenant name to logon to. See also GetAllTenantNames()

    System.String input

    String to encrypt

    System.Int32 lifeTimeSeconds

    Life time of the encyrpted string in seconds

    Returns
    Type Description
    System.String

    The encrypted string with life time information

    Examples

    POST http://YourServerName/InfoShare/Json/Server/EncryptString

    Example for encrypt a string.

    {
       "tenantName": "DCIS_KENDOX SQL Database",
       "input": "Password",
       "lifeTimeSeconds": 60
    }

    Response:

    {
      "EncryptStringResult": "GISkhPs5DECql7sY8AOaHOD816d9ukVZi8Oh5eQGlSbHXKxoR9iUbtJjj\/W2XR6+XuA0ryXXge283PbSt1zKNw=="
    }
    Back to top Copyright © Kendox