.. _mozilla_projects_nss_nss_sample_code:

NSS Sample Code
===============

.. container::

   The collection of sample code here demonstrates how NSS can be used for cryptographic operations,
   certificate handling, SSL, etc. It also demonstrates some best practices in the application of
   cryptography.

   Old samples in the process of being replaced.

   #. :ref:`mozilla_projects_nss_sample_code_sample1`
   #. :ref:`mozilla_projects_nss_sample_code_sample2`
   #. :ref:`mozilla_projects_nss_sample_code_sample3`
   #. :ref:`mozilla_projects_nss_sample_code_sample4`
   #. :ref:`mozilla_projects_nss_sample_code_sample5`
   #. :ref:`mozilla_projects_nss_sample_code_sample6`

   |
   | These are very old examples in need of replacement. See
     https://bugzilla.mozilla.org/show_bug.cgi?id=490238

   You are welcome to download the new samples via:

   .. code:: sh

      hg clone https://hg.mozilla.org/projects/nss; cd nss; hg update SAMPLES_BRANCH

   The new samples: :ref:`mozilla_projects_nss_new_nss_samples`