Sinotar Algorithm package provides algorithms for industry standard encoding schema commonly used in Internet environment. It implements Base64, Quoted-printable, SHA and MD5 algorithm -- all commly used on the Internet (HTTP, MIME, SMTP, etc.) This package is implemented by pure Java and it can be integrated with any Java project including standalone Java programs, Swing applications and J2EE web applications.
algorithm_1_0.jar (42 KB)
To use this package, simply include algorithm.jar in your classpath, and usage is demonstrated below (please refer to the source code for details):
import com.sinotar.algorithm.Base64;
public class Demo {
...
// To encode byte array to be String object
byte[] bytes = ...; // bytes to be encoded
String encodedString = Base64.encode(bytes);
// To decode String to be byte array
byte[] decodedBytes = Base64.decode(encodedString);
...
}
import com.sinotar.algorithm.QuotedPrintable;
public class Demo {
...
// To encode
String str = ...; // String to be encoded
String encodedString = QuotedPrintable.encode(str);
...
// To decode
String decodedString = QuotedPrintable.decode(encodedString);
...
}
Typically, the SHA/MD5 encoder is used to encode password and any other secure sensitive data within your Java project. Application should encode the data that user provides and compare the result with stored data stored ealier by the application for authentication or authorization purpose.
import com.sinotar.algorithm.SEncoder;
public class Demo {
...
// To encode with SHA schema
String password = ...; // String to be encoded
String encodedPassword = SEncoder.encode(password, "SHA");
...
// To encode with MD5 schema
encodedPassword = SEncoder.encode(password, "MD5");
...
String storedPassword = ...;
if(encodedPassword.equals(storedPassword)) {
// authenticated
...
}
}
Binary Production License: $99.99 (per license/computer) (USD)
Source Code: $899.00 (USD) (You can bundle the code with your software product but subject to Sinotar commercial license agreement. )
To purchase for one single binary production license, please click the button below and make payment by Paypal.com:
If you would like to pay by check, please send your payment (in USD and made payable to "Sinotar") to:
Sinotar
15 Sherman Ave.
Cumberland, RI 02864
U.S.A