Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 279465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:02:05+00:00 2026-05-12T05:02:05+00:00

I am making a little webgame that has tasks and solutions, the solutions are

  • 0

I am making a little webgame that has tasks and solutions, the solutions are solved by entering a code given to user after completion of a task. To have some security (against cheating) i dont want to store the codes genereted by the game in plain text. But since i need to be able to give a player the code when he has accomplished the task i cant hash it since then i cant retrive it.

So what is the most secure way to encrypt/decrypt something using python?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T05:02:05+00:00Added an answer on May 12, 2026 at 5:02 am

    If your script can decode the passwords, so can someone breaking in to your server. Encryption is only really useful when someone enters a password to unlock it – if it remains unlocked (or the script has the password to unlock it), the encryption is pointless

    This is why hashing is more useful, since it is a one way process – even if someone knows your password hash, they don’t know the plain-text they must enter to generate it (without lots of brute-force)

    I wouldn’t worry about keeping the game passwords as plain-text. If you are concerned about securing them, fix up possibly SQL injections/etc, make sure your web-server and other software is up to date and configured correctly and so on.

    Perhaps think of a way to make it less appealing to steal the passwords than actually play the game? For example, there was a game (I don’t recall what it was) which if you used the level skip cheat, you went to the next level but it didn’t mark it as “complete”, or you could skip the level but didn’t get any points. Or look at Project Euler, you can do any level, but you only get points if you enter the answer (and working out the answer is the whole point of the game, so cheating defeats the playing of the game)

    If you are really paranoid, you could possibly use asymmetric crypto, where you basically encrypt something with key A, and you can only read it with key B..

    I came up with an similar concept for using GPG encryption (popular asymmetric crypto system, mainly used for email encryption or signing) to secure website data. I’m not quite sure how this would apply to securing game level passwords, and as I said, you’d need to be really paranoid to even consider this..

    In short, I’d say store the passwords in plain-text, and concentrate your security-concerns elsewhere (the web applications code itself)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making a little application that needs to know how long the user has
I`m making an little php server that has 2 clients, on connects to the
I'm making a little open source mp3 player for people to see the code,
I'm making a little game framework that appends Canvas elements to a DIV but
I'm making a little game for iPhone that involves whistling. The phone hears the
I'm making a little game, here is some example code of whats going on:
I'm making a little tool to analyze code dependencies recursively. I found a problem:
I'm making little utility to help me generate code for an app I'm making.
I'm making a little jQuery plugin that creates a slider for images and content.
I am making a little messaging / chat system that is working nice and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.