)>}]
شركة التطبيقات المتكاملة لتصميم وبرمجة البرمجيات الخاصة ش.ش.و.
Integrated Applications Programming Company
Home » Code Library » EncryptionController (Ia.Ftn.Api.Wa.Controllers)

Public general use code classes and xml files that we've compiled and used over the years:

Cryptography, Encryption Controller

    1: using Microsoft.AspNetCore.Mvc;
    2:  
    3: namespace Ia.Ftn.Api.Wa.Controllers
    4: {
    5:     ////////////////////////////////////////////////////////////////////////////
    6:  
    7:     /// <summary publish="true">
    8:     /// Cryptography, Encryption Controller
    9:     /// </summary>
   10:     /// <remarks> 
   11:     /// Copyright � 2013-2024 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
   12:     /// </remarks> 
   13:     [ApiController]
   14:     public class EncryptionController : ControllerBase
   15:     {
   16:         ////////////////////////////////////////////////////////////////////////////
   17:  
   18:         /// <summary>
   19:         ///
   20:         /// </summary>
   21:         public EncryptionController()
   22:         {
   23:         }
   24:  
   25:         ////////////////////////////////////////////////////////////////////////////
   26:  
   27:         /// <summary>
   28:         /// Public-key of Fixed Telecommunications Network (FTN) credentials model.
   29:         /// </summary>
   30:         [HttpGet]
   31:         [Route("api/v1/public-key")]
   32:         public string PublicKey()
   33:         {
   34:             return Ia.Cl.Models.Cryptography.Encryption.RsaKeys.PublicKey;
   35:         }
   36:  
   37:         ////////////////////////////////////////////////////////////////////////////
   38:         ////////////////////////////////////////////////////////////////////////////
   39:     }
   40:  
   41:     ////////////////////////////////////////////////////////////////////////////
   42:     ////////////////////////////////////////////////////////////////////////////
   43: }
   44: