source: BMXNET_RPMS_dotNET_UTILITIES-BMX/branch/BMX41000/IHS BMX Framework/IndianHealthService.BMXNet/Net/EncryptionProvider.cs@ 1222

Last change on this file since 1222 was 1146, checked in by Sam Habiel, 14 years ago

Initial Import of BMX4

File size: 1.4 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Text;
4
5namespace IndianHealthService.BMXNet.Net
6{
7 /// <summary>
8 /// The crypto used to implement the socket-based BMXNET Broker. Any crypto can be used if a new
9 /// .NET EncryptionProvider is written and a corresponding modification to the RPMS-side is done.
10 /// </summary>
11 /// <remarks>
12 /// An quick experiment can be done by implementing the following ClearText EncryptionProvider and
13 /// modifying the RPMS-side encryption routines to do nothing.
14 /// <code>
15 /// public class ClearText : EncryptionProvider
16 /// {
17 /// public string Encrypt(string aString)
18 /// {
19 /// return aString;
20 /// }
21 ///
22 /// public string Decrypt(string aString)
23 /// {
24 /// return aString;
25 /// }
26 /// }
27 /// </code>
28 /// </remarks>
29 public interface EncryptionProvider
30 {
31 /// <summary>
32 /// Encrypt aString
33 /// </summary>
34 /// <param name="aString">The string to be encrypted</param>
35 /// <returns>An ASCII encrypted string</returns>
36 String Encrypt(String aString);
37
38 /// <summary>
39 /// Decrypt aString
40 /// </summary>
41 /// <param name="aString">The ASCII string to be decrypted</param>
42 /// <returns>An ASCII decrypted string</returns>
43 String Decrypt(String aString);
44 }
45
46
47}
Note: See TracBrowser for help on using the repository browser.