[fix] Correct property path. Trim read secret keys from disk.

master
indexzero 2015-10-02 01:00:55 -07:00
parent 438a2c8ef5
commit 11b2448471
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ var File = exports.File = function (options) {
this.secure.alg = this.secure.alg || 'aes-256-ctr';
if (this.secure.secretPath) {
this.secret = fs.readFileSync(this.secure.secretPath, 'utf8');
this.secure.secret = fs.readFileSync(this.secure.secretPath, 'utf8').trim();
}
if (!this.secure.secret) {