This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var rsa = require('rsa-stream'); | |
var fs = require('fs'); | |
var privkey = fs.readFileSync('./minhaPrivKey.key', 'utf8'); | |
var encStream = rsa.decrypt(privkey); | |
var inStream = fs.createReadStream('./foto.enc'); | |
var outStream = fs.createWriteStream('./minhafotolocodedoida.jpg'); | |
inStream.pipe(encStream).pipe(outStream); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
sugestoes: { | |
codelab: ['angular', 'polymer', 'dart', 'app script', | |
{"google apis": | |
['youtube api', 'maps api', 'drive api'] | |
}], | |
meetup: ['go', 'angular', 'app script', 'google apis'], | |
hackiday: ['go', 'google apis + angularjs', 'app script'] | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global module:false*/ | |
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
meta: { | |
version: '0.1.0', | |
banner: '/*! PROJECT_NAME - v<%= meta.version %> - ' + | |
'<%= grunt.template.today("yyyy-mm-dd") %>\n' + | |
'* http://www.jvsoftware.com/\n' + |