Skip to content

Instantly share code, notes, and snippets.

View pfried's full-sized avatar

Friedrich Mäckle pfried

View GitHub Profile
module.exports = function(mongoose) {
var hasher = require('pbkdf2-hasher');
var toLowerCase = function(string) {
return string.toLowerCase();
}
// Generate a new password hash
var hashPassword = function(password, callback) {
@pfried
pfried / gist:5876966
Last active December 19, 2015 01:38
polyglot.js example
$(document).ready(function() {
var phrases = {
"car" : "%{smart_count} Auto |||| %{smart_count} Autos"
};
var polyglot = new Polyglot({phrases : phrases, locale : "de"});
// Zero form
console.log(polyglot.t("car",{ "smart_count" : 0}));
@pfried
pfried / README.md
Created June 13, 2019 05:15 — forked from bryan-hunt/README.md
Example Certificate Provisioning

Microchip Secure Element Tools

These tools are used to set up an example chain of trust ecosystem for use with Microchip ATECC508A and ATECC608A parts. Included are utilities to create the ecosystem keys and certificates.

Dependencies

Python scripts will require python 3 to be installed. Once python is installed install the requirements (from the path of this file):