)>}]
شركة التطبيقات المتكاملة لتصميم وبرمجة البرمجيات الخاصة ش.ش.و.
Integrated Applications Programming Company
Skip Navigation Links

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

Cryptography, Encryption Controller

    1: using System;
    2: using System.Configuration;
    3: using System.IO;
    4: using System.Security.Cryptography;
    5: using System.Security.Cryptography.X509Certificates;
    6: using System.Text;
    7: using System.Web.Http;
    8: using System.Xml;
    9:  
   10: namespace Ia.Ngn.Ofn.Wa.Api.Controller.Cryptography
   11: {
   12:     ////////////////////////////////////////////////////////////////////////////
   13:  
   14:     /// <summary publish="true">
   15:     /// Cryptography, Encryption Controller
   16:     /// </summary>
   17:     /// <remarks> 
   18:     /// Copyright � 2013-2021 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
   19:     ///
   20:     /// This library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
   21:     /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
   22:     ///
   23:     /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
   24:     /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
   25:     /// 
   26:     /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
   27:     /// 
   28:     /// Copyright notice: This notice may not be removed or altered from any source distribution.
   29:     /// </remarks> 
   30:  
   31:     public class EncryptionController : ApiController
   32:     {
   33:         ////////////////////////////////////////////////////////////////////////////
   34:  
   35:         /// <summary>
   36:         ///
   37:         /// </summary>
   38:         public EncryptionController()
   39:         {
   40:         }
   41:  
   42:         ////////////////////////////////////////////////////////////////////////////
   43:  
   44:         /// <summary>
   45:         /// Public-key of Optical Fiber Network (OFN) credentials model.
   46:         /// </summary>
   47:         [HttpGet]
   48:         [Route("api/v1/public-key")]
   49:         public string PublicKey()
   50:         {
   51:             return Ia.Cl.Model.Cryptography.Encryption.RsaKeys.PublicKey;
   52:         }
   53:  
   54:         ////////////////////////////////////////////////////////////////////////////
   55:         ////////////////////////////////////////////////////////////////////////////
   56:     }
   57:  
   58:     ////////////////////////////////////////////////////////////////////////////
   59:     ////////////////////////////////////////////////////////////////////////////
   60: }
   61: