You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



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.
  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