-
-
Notifications
You must be signed in to change notification settings - Fork 19.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Encrypt/Decrypt string variable with GDscript #1969
Comments
could use aes256 for this, would that be fine? On Sun, May 24, 2015 at 11:40 AM, volzhs notifications@github.com wrote:
|
Yes! I love it. That would be great~ 👍 |
Over networks you probably want a Diffie Hellman key exchange to prevent MITM sniffing of the keys used to encrypt passwords. |
Currently I am traveling so can't update the branch. Last I heard the discussion was over the api. Here are the functions that are needed:
password sha256 hashes the input and puts it into the key. -Use hmac Is their a hmac at the start of the message(works for encrypting and decryption) -encrypt_raw The meat of the class. Could someone provide me with a suitable api that I can implement when I get home? |
this would be very nice to have for encrypting game saves or for implementing anti-piracy measures |
If possible, it would be interesting to provide the same functionalities with other algorithms, such as sha-512. |
@StraToN However the SHA family of algorithms are for one-way (non-reversible) hashes (digital signatures, integrity checks, etc.) and not for actual encryption of messages and data. For instance passwords could be stored locally using an SHA algorithm but transmission of passwords (insecure) to reply to a host's credential challenge needs to use a (reversible) cipher. |
@StraToN There's already
Passwords should be hashed using a strong algorithm that's slow to compute, such as bcrypt or Argon2 😃 |
Are BSD's & linuxes now doing this by default? On the same note as this very feature request, the absence of them in the API pretty much precludes their use in a Godot project unless perhaps one is a C++ whiz using Godot 3 and wants to make a GDNative plugin (but that creates in itself new issues such as platform dependence). |
I got some work to expose the mbedtls functions. Could maybe some of these functions be used in Godot? |
Feature and improvement proposals for the Godot Engine are now being discussed and reviewed in a dedicated Godot Improvement Proposals (GIP) (godotengine/godot-proposals) issue tracker. The GIP tracker has a detailed issue template designed so that proposals include all the relevant information to start a productive discussion and help the community assess the validity of the proposal for the engine. The main (godotengine/godot) tracker is now solely dedicated to bug reports and Pull Requests, enabling contributors to have a better focus on bug fixing work. Therefore, we are now closing all older feature proposals on the main issue tracker. If you are interested in this feature proposal, please open a new proposal on the GIP tracker following the given issue template (after checking that it doesn't exist already). Be sure to reference this closed issue if it includes any relevant discussion (which you are also encouraged to summarize in the new proposal). Thanks in advance! |
It would be great to have simple way for encrypt/decrypt string like this.
I think it's very useful when send/receive some messages over network.
The text was updated successfully, but these errors were encountered: