/* * Given a "text" (i.e. "amazon.com") and a "secret" (i.e. "mypassword") return an * array of four Passy'fied passwords. */ var passy = function(text,secret) { /* * function to make a password out of a hexadecimal string "0123456789abcdef". * * + substitutes symbols for every other digit [0-9] * + capitalize every other alpha [a-f] * */ var passify = function(hexstr) { // lookup table to convert a single character to a symbol var symtab = { "1":"!", "2":"@", "3":"#", "4":"$", "5":"%", "6":"^", "7":"&", "8":"*", "9":"(", "0":")" }; // convert every other numerical character to a symbol var odd = true; for(i=0;i