commit
b065c4ccd9
1 changed files with 2 additions and 2 deletions
|
@ -38,8 +38,8 @@ var File = exports.File = function (options) {
|
||||||
|| 2;
|
|| 2;
|
||||||
|
|
||||||
if (this.secure) {
|
if (this.secure) {
|
||||||
this.secure = typeof this.secure === 'string'
|
this.secure = Buffer.isBuffer(this.secure) || typeof this.secure === 'string'
|
||||||
? { secret: this.secure }
|
? { secret: this.secure.toString() }
|
||||||
: this.secure;
|
: this.secure;
|
||||||
|
|
||||||
this.secure.alg = this.secure.alg || 'aes-256-ctr';
|
this.secure.alg = this.secure.alg || 'aes-256-ctr';
|
||||||
|
|
Loading…
Reference in a new issue