rogerluan / arkana

Use dotenv files for Android and iOS projects.
BSD 2-Clause "Simplified" License
379 stars 18 forks source link

The key is getting corrupted when it contains '$' #28

Closed pavelmarchuk closed 1 year ago

pavelmarchuk commented 1 year ago

The key is getting corrupted if it contains $.

I store APIKeyStaging="A$QEsdXNWTK0Qc+iSAl" in .env file, generate code and then I see "A+iSAl" as a decrypted value at the runtime.

Arkana v1.3.1.

Are there other special symbols that could corrupt keys?

rogerluan commented 1 year ago

Thank you so much for identifying and reporting this issue @pavelmarchuk 🙏

I am unaware of other symbols that could interfere with the encryption process, but I will have a look and report back. If you have any new findings meanwhile, let me know! I'll think of ways to mitigate the problem with "problematic" characters

rogerluan commented 1 year ago

@pavelmarchuk I've opened a PR clarifying usage of special characters 💪 https://github.com/rogerluan/arkana/pull/30

Thanks again for bringing up this topic! 🚀

pavelmarchuk commented 1 year ago

Thanks for the explanation!