예제 #1
0
 public static void Encrypt()
 {
     EncryptionRequest request = new EncryptionRequest
     {
         RequestType    = CryptoRequestType.Encrypt,
         EncryptionType = Server.Cryptography.DataTypes.EncryptionType.AES,
         KeyEntityId    = Guid.Parse("78CD19D9-3D46-407C-81FC-ABB10118DDBA"),
         PlainText      = "Hello World!"
     };
     RestClientFactory client = new RestClientFactory("CryptographyApi");
     var response             = client.PostCall <EncryptionResponse, EncryptionRequest>
                                    (client.apiConfiguration.Apis["Encrypt"], request);
 }