Giter Site home page Giter Site logo

ERR_CRYPTO_INVALID_KEYLEN about chartbrew HOT 6 CLOSED

hoang3402 avatar hoang3402 commented on June 8, 2024
ERR_CRYPTO_INVALID_KEYLEN

from chartbrew.

Comments (6)

hoang3402 avatar hoang3402 commented on June 8, 2024 1

okey it work. thank you <3

from chartbrew.

razvanilin avatar razvanilin commented on June 8, 2024

Hey @hoang3402 it looks like the CB_ENCRYPTION_KEY value is not the right format. You can generate a key from here: https://generate-random.org/encryption-key-generator?count=1&bytes=32&cipher=aes-256-cbc&string=&password=

If you run this in development, the key needs to be placed in CB_ENCRYPTION_KEY_DEV

from chartbrew.

razvanilin avatar razvanilin commented on June 8, 2024

It looks like from #218 that the website I quoted does not generate valid keys all the time.

You can generate valid keys using the following command:

openssl rand -hex 32

Also, if you're not using 3.4.0 yet, I recommend upgrading because it has some important fixes to the encryption

from chartbrew.

hoang3402 avatar hoang3402 commented on June 8, 2024

I am using version 3.4.0 and I have set the CB_ENCRYPTION_KEY=JDw79w2olomOXKCgtaGpcSfQBGtjXWzhycfdk1bcCwn+y6uAI4ggKHhNJqDWSZML

from chartbrew.

hoang3402 avatar hoang3402 commented on June 8, 2024

I will try set CB_ENCRYPTION_KEY_DEV

from chartbrew.

yevhenskakun avatar yevhenskakun commented on June 8, 2024

I am using version 3.4.0 and I have set the CB_ENCRYPTION_KEY=JDw79w2olomOXKCgtaGpcSfQBGtjXWzhycfdk1bcCwn+y6uAI4ggKHhNJqDWSZML

it should be like this:

CB_ENCRYPTION_KEY=7760818611ab0e6aecd0600a932e8507b4870e655c495ba119293ddee788dda7
CB_ENCRYPTION_KEY_DEV=745e62829584e037b7da09ed70f95c5c14feb8afdfe45bb29196f484c53b464a

from chartbrew.

Related Issues (20)

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.