Hey everyone. I am announcing a new Java class library called GrandCentral. I created GrandCentral to help developers make their applications very secure. Currently there are only two classes inside GrandCentral. These classes are TokenAuthority and SimpleCrypto.
TokenAuthority is used to create secure password tokens based on the time of day. This class is very simple to implement into your Java application. To generate a password token you have to send a plain text non-secured password to the generateToken method. In response you will receive a String containing a secured password token.
The above produces the outputpublic static void main(String[] args) { TokenAuthority tAuth = new TokenAuthority(); System.out.println(tAuth.generateToken("yourPassword")); }
6e6e0230c86300080376fd91b08204a9-DQPYqsWQEdlg6/XOMGas4hIfsA==-1f8c5690bbf2fec23c147052cdf24c9f-18006-dc1136dfde10362bd6fd26f72abb4e16-WepOXmbQ1M0vqEnliSDBnSpLRLlF-15d690a3e2ac3c5d58b32d05155112c3
SimpleCrypto is used to create digests and checksums using both SHA and MD5 algorithms.
- To generate a digest you have to send a plain text String to either the shaDigest()* or md5Digest() method. In response you will receive a String containing the generated digest.
- To generate a checksum you have to send a file path to either the shaChecksum()* or md5Checksum() method. In response you will receive a String containing the generated checksum.
The above produces the outputpublic static void main(String[] args) { SimpleCrypto sCrypto = new SimpleCrypto(); System.out.println(sCrypto.md5Digest("YourText")); }
abfbb122e916f376ecf84fa373884d2e
GrandCentral is free software: you can redistribute it but you CANNOT modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, version 3 of the License. The source code is not made publicly available and is the original work of Cristian Rivera.
I have embedded all dependencies inside the GrandCentral v1.-.jar file, therefore you dont have to reference any external libraries in your application. The appropriate licenses have been supplied inside GrandCentral.
You can check out GrandCentral at http://code.google.com/p/grandcentral/
*You must also send a Secure Hash Algorithm to the shaDigest() or shaChecksum() method.
The supported Secure Hash Algorithms are SHA1, SHA-256, SHA-384 or SHA-512.
Please let me know what you think. If you are interested in contributing feel free to send me a PM or post a reply.