NSS Sample Code

NSS Sample Code

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.

  1. Sample Code 1: Key Generation and Transport Between Servers
  2. Sample Code 2: Symmetric Encryption
  3. Sample Code 3: Hashing, MAC
  4. Sample Code 4: PKI Encryption
  5. Sample Code 5: PKI Encryption with a raw public & private key in DER format
  6. Sample Code 6: Persistent Symmetric Keys in NSS database


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:

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

The new samples: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/New_NSS_Samples

Document Tags and Contributors

Tags: 
 Contributors to this page: emaldona@redhat.com, Sheppy, kwilson
 Last updated by: emaldona@redhat.com,