Mohit-3430 / CredPass

A specialized Password Manager built with MERN stack (Education purpose)
https://credpass.netlify.app/
0 stars 2 forks source link

Cryptr: secret must be a non-0-length string #1

Closed OpanoDev closed 2 years ago

OpanoDev commented 2 years ago

PS C:\Users\Yasin Karaman\Desktop\PVA-MERN-main\server> npm start

server@1.0.0 start nodemon server.js

[nodemon] 2.0.15 [nodemon] to restart at any time, enter rs [nodemon] watching path(s): . [nodemon] watching extensions: js,mjs,json [nodemon] starting node server.js C:\Users\Yasin Karaman\Desktop\PVA-MERN-main\server\node_modules\cryptr\index.js:12 throw new Error('Cryptr: secret must be a non-0-length string'); ^

Error: Cryptr: secret must be a non-0-length string at new Cryptr (C:\Users\Yasin Karaman\Desktop\PVA-MERN-main\server\node_modules\cryptr\index.js:12:15) at file:///C:/Users/Yasin%20Karaman/Desktop/PVA-MERN-main/server/configs/EncryptionHandler.js:7:16 at ModuleJob.run (node:internal/modules/esm/module_job:197:25) at async Promise.all (index 0) at async ESMLoader.import (node:internal/modules/esm/loader:337:24) at async loadESM (node:internal/process/esm_loader:88:5) at async handleMainPromise (node:internal/modules/run_main:61:12) [nodemon] app crashed - waiting for file changes before starting...

OpanoDev commented 2 years ago

I would like to try your Project. But get following Error. Do you have a Installation Guide?

Mohit-3430 commented 2 years ago

It's not an issue, btw this is my personal project(that is the reason there is no installation guide) u r getting errors since environment variables are not set.

OpanoDev commented 2 years ago

Hi,

is it because oft the env. for the database link is not set?

[https://profile-images.xing.com/images/3a72f12b7176fab42ed9de42d54dbff5-11/yasin-karaman.256x256.jpg] Yasin Karaman Geschäftsführer Opano IT Solutions [https://cdn2.hubspot.net/hubfs/53/tools/email-signature-generator/icons/phone-icon-2x.png] +491724933419<tel:+49172493419> | +4915140009970<tel:+4915140009970> [https://cdn2.hubspot.net/hubfs/53/tools/email-signature-generator/icons/email-icon-2x.png] @.**@.> [https://cdn2.hubspot.net/hubfs/53/tools/email-signature-generator/icons/link-icon-2x.png] www.opano.defile://www.opano.de/ [https://cdn2.hubspot.net/hubfs/53/tools/email-signature-generator/icons/address-icon-2x.png] Uhlandstraße 21, 89522, Heidenheim an der Brenz, Deutschland [https://www.opano.de/wp-content/uploads/2021/06/opano_logo_500.png] [facebook]https://www.facebook.com/OpanoIT/ [twitter]https://www.xing.com/profile/Yasin_Karaman11 [linkedin]https://de.linkedin.com/in/yasin-karaman-44b01214b

Von: Mohit Suryadevara @.> Gesendet: Samstag, 19. März 2022 04:36 An: Mohit-3430/PVA-MERN @.> Cc: Yasin Karaman @.>; Author @.> Betreff: Re: [Mohit-3430/PVA-MERN] Cryptr: secret must be a non-0-length string (Issue #1)

It's not an issue, btw this is my personal project(that is the reason there is no installation guide) u r getting errors since environment variables are not set.

— Reply to this email directly, view it on GitHubhttps://github.com/Mohit-3430/PVA-MERN/issues/1#issuecomment-1072930707, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVMM44D7K5HVLY7LPSUYCOTVAVDQ7ANCNFSM5RDJIBMA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.**@.>>

Mohit-3430 commented 2 years ago

Yes, but error is related to the Cryptr (node package)secret which is set as env variable. I have to change this but since this is my first project I have used this simple library.

Mohit-3430 commented 2 years ago

If u want to try just put up your own env

  1. For Cryptr
  2. For Database mongo atlas or local mongo instance
OpanoDev commented 2 years ago

Ok i understand.

We are looking for an Web Application Developer in MERN Stack -> Nest.JS, Next.JS and MongoDB

We have a Blockchain.based Vault Manager Project. Is it interessting for you?

Maybe we can talk about the Project, the Costs and the Time or Duration.

[https://profile-images.xing.com/images/3a72f12b7176fab42ed9de42d54dbff5-11/yasin-karaman.256x256.jpg] Yasin Karaman Geschäftsführer Opano IT Solutions [https://cdn2.hubspot.net/hubfs/53/tools/email-signature-generator/icons/phone-icon-2x.png] +491724933419<tel:+49172493419> | +4915140009970<tel:+4915140009970> [https://cdn2.hubspot.net/hubfs/53/tools/email-signature-generator/icons/email-icon-2x.png] @.**@.> [https://cdn2.hubspot.net/hubfs/53/tools/email-signature-generator/icons/link-icon-2x.png] www.opano.defile://www.opano.de/ [https://cdn2.hubspot.net/hubfs/53/tools/email-signature-generator/icons/address-icon-2x.png] Uhlandstraße 21, 89522, Heidenheim an der Brenz, Deutschland [https://www.opano.de/wp-content/uploads/2021/06/opano_logo_500.png] [facebook]https://www.facebook.com/OpanoIT/ [twitter]https://www.xing.com/profile/Yasin_Karaman11 [linkedin]https://de.linkedin.com/in/yasin-karaman-44b01214b

Von: Mohit Suryadevara @.> Gesendet: Samstag, 19. März 2022 04:42 An: Mohit-3430/PVA-MERN @.> Cc: Yasin Karaman @.>; Author @.> Betreff: Re: [Mohit-3430/PVA-MERN] Cryptr: secret must be a non-0-length string (Issue #1)

Yes, but error is related to the Cryptr (node package)secret which is set as env variable. I have to change this but since this is my first project I have used this simple library.

— Reply to this email directly, view it on GitHubhttps://github.com/Mohit-3430/PVA-MERN/issues/1#issuecomment-1072931410, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVMM44AQDPXSSJZRKDFFRFDVAVEI5ANCNFSM5RDJIBMA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.**@.>>

Mohit-3430 commented 2 years ago

Shall I contact u on LinkedIn...??

OpanoDev commented 2 years ago

Yes please.

[https://profile-images.xing.com/images/3a72f12b7176fab42ed9de42d54dbff5-11/yasin-karaman.256x256.jpg] Yasin Karaman Geschäftsführer Opano IT Solutions [https://cdn2.hubspot.net/hubfs/53/tools/email-signature-generator/icons/phone-icon-2x.png] +491724933419<tel:+49172493419> | +4915140009970<tel:+4915140009970> [https://cdn2.hubspot.net/hubfs/53/tools/email-signature-generator/icons/email-icon-2x.png] @.**@.> [https://cdn2.hubspot.net/hubfs/53/tools/email-signature-generator/icons/link-icon-2x.png] www.opano.defile://www.opano.de/ [https://cdn2.hubspot.net/hubfs/53/tools/email-signature-generator/icons/address-icon-2x.png] Uhlandstraße 21, 89522, Heidenheim an der Brenz, Deutschland [https://www.opano.de/wp-content/uploads/2021/06/opano_logo_500.png] [facebook]https://www.facebook.com/OpanoIT/ [twitter]https://www.xing.com/profile/Yasin_Karaman11 [linkedin]https://de.linkedin.com/in/yasin-karaman-44b01214b

Von: Mohit Suryadevara @.> Gesendet: Samstag, 19. März 2022 04:50 An: Mohit-3430/PVA-MERN @.> Cc: Yasin Karaman @.>; Author @.> Betreff: Re: [Mohit-3430/PVA-MERN] Cryptr: secret must be a non-0-length string (Issue #1)

Shall I contact u on LinkedIn...??

— Reply to this email directly, view it on GitHubhttps://github.com/Mohit-3430/PVA-MERN/issues/1#issuecomment-1072932244, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVMM44EUTE35GTC45KT7ITTVAVFFNANCNFSM5RDJIBMA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.**@.>>