beeven / gulp-openssl-encrypt

2 stars 0 forks source link

Error: This file is not an openssl enrypted file #1

Open ChrisPanthera opened 6 years ago

ChrisPanthera commented 6 years ago

Hello,

I've taken the basic example from your documentation:

const gulp = require('gulp');
const encrypt = require("gulp-openssl-encrypt");
const rename = require('gulp-rename');

gulp.task('encrypt', () => {
    gulp.src(['plaintext.txt'])
        .pipe(encrypt({
            password: 'password',
            format: 'openssl',
            decrypt: 'false',
            algorithm: 'aes-256-cbc',
        }))
        .pipe(rename('plaintext.txt.enc'))
        .pipe(gulp.dest('./'));
});

I've included the 'plaintext.txt' file in the same directory as my gulpfile.js.

The following error is being returned:

events.js:165 throw er; // Unhandled 'error' event ^ Error: This file is not an openssl enrypted file

jssuttles commented 6 years ago

'false' is truthy

jssuttles commented 6 years ago

And 'enrypted' seems to be a spelling error