using System; using System.Collections.Generic; using System.Text; namespace IndianHealthService.BMXNet.Net { /// /// The crypto used to implement the socket-based BMXNET Broker. Any crypto can be used if a new /// .NET EncryptionProvider is written and a corresponding modification to the RPMS-side is done. /// /// /// An quick experiment can be done by implementing the following ClearText EncryptionProvider and /// modifying the RPMS-side encryption routines to do nothing. /// /// public class ClearText : EncryptionProvider /// { /// public string Encrypt(string aString) /// { /// return aString; /// } /// /// public string Decrypt(string aString) /// { /// return aString; /// } /// } /// /// public interface EncryptionProvider { /// /// Encrypt aString /// /// The string to be encrypted /// An ASCII encrypted string String Encrypt(String aString); /// /// Decrypt aString /// /// The ASCII string to be decrypted /// An ASCII decrypted string String Decrypt(String aString); } }