Skip to main content

Posts

Showing posts from November, 2014

Ip Sec Internet Security Basic Structure

The IPsec suite is an  open standard . IPsec uses the following  protocols  to perform various functions: Authentication Headers (AH)  provide connectionless  integrity  and data origin  authentication  for IP  datagrams  and provides protection against  replay attacks . Encapsulating Security Payloads (ESP)  provide  confidentiality , data-origin  authentication , connectionless  integrity , an anti-replay service (a form of partial sequence integrity), and limited traffic-flow confidentiality. Security Associations (SA)  provide the bundle of algorithms and data that provide the parameters necessary to AH and/or ESP operations. The  Internet Security Association and Key Management Protocol  (ISAKMP) provides a framework for authentication and key exchange, with actual authenticated keying material provided either by manual configuration with pre-shared keys,  Internet Key Exchange  (IKE and IKEv2),  Kerberized Internet Negotiation of Keys  (KINK), or IPSECKEY  DNS records .

Diffie-Hellman Algo simple Example

Here is the example to show simple calculation : Alice and Bob  agree to use a prime number  p  =  23  and base  g  =  5  (which is a primitive root modulo 23). Alice chooses a secret integer  a  =  6 , then sends Bob  A  =  g a  mod  p A  =  5 6  mod  23  =  8 Bob chooses a secret integer  b  =  15 , then sends Alice  B  =  g b  mod  p B  =  5 15  mod  23  =  19 Alice computes  s  =  B a  mod  p s  =  19 6  mod  23  =  2 Bob computes  s  =  A b  mod  p s  =  8 15  mod  23  =  2 Alice and Bob now share a secret (the number  2 ). Done :)

Apply only one checkbox selected in checkbox list in asp.net and underline selected

Here is the code    <script src="js/jquery-1.6.2.js"></script>     <script type="text/javascript">         $(document).ready(function () {             $("[id*=CheckBoxList1] input:checkbox").change(function () {                 $("[id*=CheckBoxList1] input:checkbox:not(:disabled)").prop('checked', false);                 $("[id*=CheckBoxList1] input:checkbox").next().css("text-decoration", "none");                 $(this).prop("checked", true);                 $(this).next().css("text-decoration", "underline");             })         });     </script> Done :)