This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * JavaFX Game Save and Load utility | |
| * | |
| * The author of this software "Eudy Contreras" grants you ("Licensee") | |
| * a non-exclusive, royalty free, license to use,modify and redistribute this | |
| * software in source and binary code form. | |
| * | |
| * Please be aware that this software is simply part of a personal test | |
| * and may in fact be unstable. The software in its current state is not |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * JavaFX Splash Screen utility | |
| * | |
| * The author of this software "Eudy Contreras" grants you ("Licensee") | |
| * a non-exclusive, royalty free, license to use,modify and redistribute this | |
| * software in source and binary code form. | |
| * | |
| * Please be aware that this software is simply part of a personal test | |
| * and may in fact be unstable. The software in its current state is not | |
| * considered a finished product and has plenty of room for improvement and |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Inspired from http://coding4streetcred.com/blog/post/Asymmetric-Encryption-Revisited-(in-PyCrypto) | |
| # PyCrypto docs available at https://www.dlitz.net/software/pycrypto/api/2.6/ | |
| from Crypto import Random | |
| from Crypto.PublicKey import RSA | |
| import base64 | |
| def generate_keys(): | |
| # RSA modulus length must be a multiple of 256 and >= 1024 | |
| modulus_length = 256*4 # use larger value in production |