File Encryption

I was working on a project where i wanted to encrypt a file and then decrypt it. I got it working, but the key is hard coded in which i know you shouldn't do. I ma trying to figure out how i could securly do this. I want it to be download the application and the user doesnt need to do anything. https://sourceb.in/43xrL5xbBC
SourceBin
Class
Instantly share your code with the world.
5 Replies
JavaBot
JavaBot6mo ago
This post has been reserved for your question.
Hey @abbatrombone! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
abbatrombone
abbatromboneOP6mo ago
How should i set up my encytion key such that the user does not need to do anything?
Yanis
Yanis6mo ago
You could make a command / bash script to auto generate it into a .env or smt
JavaBot
JavaBot6mo ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
JavaBot
JavaBot6mo ago
Post Closed
This post has been closed by <@255541461087551498>.

Did you find this page helpful?