Code Monkey home page Code Monkey logo

cryptify's Introduction


At FlagSync, we believe the power of feature flags and A/B testing should be accessible to everyone, regardless of business size or budget.

That's why we developed an affordable, user-friendly platform that delivers the core functionality needed by indie hackers and growing businesses, without unnecessary complexity.

Get started using FlagSync today!

Twitter URL


I'm no longer maintaining:

๐Ÿ’” react-boilerplate
๐Ÿ’” redux-entity
๐Ÿ’” maybe-baby
๐Ÿ’” react-json-form-engine

cryptify's People

Contributors

mikechabot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cryptify's Issues

TypeScript error on instantiation

const crypt = new Cryptify(<string>process.env.PASSWORD_FILE, <string>process.env.ENCRYPTION_KEY);

Error:

This expression is not constructable.
  Type 'typeof import("/Users/daniel/Developer/email-reporting/node_modules/cryptify/lib/CryptifyModule")' has no construct signatures.

Im getting an error of File Not Found?

Error: No such file: ./users.benin
at D:\BeninDB\benindb\node_modules\cryptify\lib\CryptifyBase.js:136:15
at Array.forEach ()
at CryptifyModule.validateFiles (D:\BeninDB\benindb\node_modules\cryptify\lib\CryptifyBase.js:132:11)
at D:\BeninDB\benindb\node_modules\cryptify\lib\CryptifyBase.js:314:16
at Generator.next ()
at asyncGeneratorStep (D:\BeninDB\benindb\node_modules\cryptify\lib\CryptifyBase.js:26:103)
at _next (D:\BeninDB\benindb\node_modules\cryptify\lib\CryptifyBase.js:28:194)
at D:\BeninDB\benindb\node_modules\cryptify\lib\CryptifyBase.js:28:364
at new Promise ()
at D:\BeninDB\benindb\node_modules\cryptify\lib\CryptifyBase.js:28:97

Just started getting an error- Invalid cipher: aes-256-cbc-hmac-sha256

Just starting today, when running cryptify without specifying a cipher to decrypt a file I received an error:
โœ˜ Invalid cipher: aes-256-cbc-hmac-sha256, see --help

Looking at isValidCipher() in util.js a bit, it looks like the call to _crypto2.default.getCiphers() is not returning the default cipher "aes-256-cbc-hmac-sha256" as a possible candidate. The fix for me was to add a "-c aes-256-cbc" option to my decrypt command. eg:

./node_modules/.bin/cryptify -c aes-256-cbc -p ${CRYPTIFY} -d srt-database-export.sql.gz

My existing script had been working fine for a few months until this morning. I'm not sure what changed in my environment to cause the error. I'm hesitant to create a pull request that changes the default cipher because I don't know if that would break things for other people and the work around is simple. Happy to submit a patch if you think it is the right thing to do.

can't resolve 'fs'

Hi, i'm trying to implement cryptify to encrypt and decrypt files, which works well from the command line, but when trying to import the module into my ionic angular project, i keep getting this error:
Error: Module not found: Error: Can't resolve 'fs'
Kindly Help fix this as i can't get to wrap my head as to the cause of this issue

Disable password requirements

hi @mikechabot,
I am using your cryptify package, it's been great!
I have one small issue though. Since my server allows the user to input their password, I don't want their password to be restricted by cryptify as below:
image

Is there any way I can disable the password requirements feature? A workaround I am thinking of is hashing the user-supplied password so that it satisfies all the requirements. Or, simply, add some characters so that the password is always satisfied.

For example, the user supplies password "916P" => convert to "Aa1916P" to satisfy all four requirements above.
Thanks!

I am willing to work on this feature because I really need this functionality. Thanks!

Error when using big files I guess

Hi Thanks for this package first,
I trying to use it but i get this error if have big files :(

The File where it fails has 800MB

Code:

const instance = new Cryptify(destination + '.enc', encryptionKey, 'aes-256-cbc-hmac-sha256', undefined, true, true);
instance.encrypt()
	.then((encryptedFile) => {
		resolve(destination + '.enc')
	})
	.catch((e) => {
		console.log(e);
	});

can you maybe help ?

Error: Cannot create a string longer than 0x1fffffe8 characters
    at Object.slice (node:buffer:599:37)
    at Buffer.toString (node:buffer:819:14)
    at Object.readFileSync (node:fs:502:41)
    at /.../node_modules/cryptify/lib/CryptifyBase.js:299:47
    at Array.map (<anonymous>)
    at CryptifyModule.getFilesSync (/.../node_modules/cryptify/lib/CryptifyBase.js:299:23)
    at /.../node_modules/cryptify/lib/CryptifyBase.js:366:55
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/.../node_modules/cryptify/lib/CryptifyBase.js:26:103)
    at _next (/.../node_modules/cryptify/lib/CryptifyBase.js:28:194) {
  code: 'ERR_STRING_TOO_LONG'
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.