Skip to content

Commit

Permalink
Update string quotes for project style guide.
Browse files Browse the repository at this point in the history
  • Loading branch information
jboyer2012 committed Sep 29, 2017
1 parent 6124e5d commit 02673d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/data/profile-dao.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function ProfileDAO(db) {
var createIV = function() {
// create a random salt for the PBKDF2 function - 16 bytes is the minimum length according to NIST
var salt = crypto.randomBytes(16);
return crypto.pbkdf2Sync(config.cryptoKey, salt, 100000, 512, 'sha512');
return crypto.pbkdf2Sync(config.cryptoKey, salt, 100000, 512, "sha512");
}
// Helper methods to encryt / decrypt
Expand Down Expand Up @@ -98,7 +98,7 @@ function ProfileDAO(db) {
function(err, user) {
if (err) return callback(err, null);
/*
// Fix for A7 - Sensitive Data Exposure
// Fix for A6 - Sensitive Data Exposure
// Decrypt ssn and DOB values to display to user
user.ssn = user.ssn ? decrypt(user.ssn) : "";
user.dob = user.dob ? decrypt(user.dob) : "";
Expand Down
2 changes: 1 addition & 1 deletion app/views/tutorial/a6.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ <h3 class="panel-title">Source Code Example</h3>
var createIV = function() {
// create a random salt for the PBKDF2 function - 16 bytes is the minimum length according to NIST
var salt = crypto.randomBytes(16);
return crypto.pbkdf2Sync(config.cryptoKey, salt, 100000, 512, 'sha512');
return crypto.pbkdf2Sync(config.cryptoKey, salt, 100000, 512, "sha512");
}

// Helper methods to encryt / decrypt
Expand Down

0 comments on commit 02673d8

Please sign in to comment.