| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| javadoc.1.1.zip | 2012-01-23 | 105.5 kB | |
| Totals: 1 Item | 105.5 kB | 0 | |
To test the example please edit the main method, add key word static in the main method. [public static void main(String args[]) {[
Tested on java 1.6 , 1.7
Supported specs.
/* Message Digest Algorithm */
public static String HASH_ALGORITHM_MD5 = "MD5";
public static String HASH_ALGORITHM_MD6 = "MD6";
/* Secure Hash Algorithm */
public static String HASH_ALGORITHM_SHA = "SHA";
public static String HASH_ALGORITHM_SHA1 = "SHA-1";
public static String HASH_ALGORITHM_SHA224 = "SHA-224";
public static String HASH_ALGORITHM_SHA256 = "SHA-256";
public static String HASH_ALGORITHM_SHA384 = "SHA-384";
public static String HASH_ALGORITHM_SHA512 = "SHA-512";
/* Encryption algorithms */
public static String ENCRYPTION_ALGORITHM_AES = "AES";
public static String ENCRYPTION_ALGORITHM_DES = "DES";
public static String ENCRYPTION_ALGORITHM_RC2 = "RC2";
public static String ENCRYPTION_ALGORITHM_Blowfish = "Blowfish";
public static String ENCRYPTION_ALGORITHM_DESede = "DESede";
/* Hashing character encoding */
public static String HASHING_CHARACTER_ENCODING_UTF8 = "UTF-8";
public static String HASHING_CHARACTER_ENCODING_UTF16 = "UTF-16";
public static String HASHING_CHARACTER_ENCODING_ASCII = "ASCII";
/* Sample run */
run:
Asymmetric Encryption:
SHA-384 :UTF-8 plainText="test" , cipheredText="doQSMg97CqWBL85CjcRwazyuUOAqZMqhangiSb/o78S37xzLEmJV0ZYEff7fF6Cp"
MD5 :UTF-16 plainText="test" , cipheredText="pYTPTV5oJRIbjhe7EqkyfQ=="
SHA-256 :ASCII plainText="test" , cipheredText="n4bQgYhMfWWaL+qgxVrQFaO/TxsrC4Is0V1sFbDwCgg="
Symmetric Encryption: Default
:UTF-8 plainText="test" , cipheredText="24 -124 94 -113 24 -110 -115 117 "
:UTF-8 cipheredText="24 -124 94 -113 24 -110 -115 117 " , decipheredText="test"
Symmetric Encryption: Algorithm AES
:UTF-8 plainText="test" , cipheredText="63 58 -49 100 -2 -20 96 -48 73 -66 38 29 -24 -121 33 38 "
:UTF-8 cipheredText="63 58 -49 100 -2 -20 96 -48 73 -66 38 29 -24 -121 33 38 " , decipheredText="test"
Symmetric Encryption: Algorithm Blowfish
:UTF-8 plainText="test" , cipheredText="6 94 -43 -92 -55 -99 -17 0 "
:UTF-8 cipheredText="6 94 -43 -92 -55 -99 -17 0 " , decipheredText="test"
Symmetric Encryption: Algorithm RC2
:UTF-8 plainText="test" , cipheredText="117 95 28 86 -123 -62 -114 -1 "
:UTF-8 cipheredText="117 95 28 86 -123 -62 -114 -1 " , decipheredText="test"
Symmetric Encryption: Algorithm AES[Static key]
Symmetric Encryption: Algorithm AES
:UTF-8 plainText="test" , cipheredText="-125 -49 -30 14 115 -29 -11 -111 89 110 -53 -89 52 119 -88 63 "
:UTF-8 cipheredText="-125 -49 -30 14 115 -29 -11 -111 89 110 -53 -89 52 119 -88 63 " , decipheredText="test"
Symmetric Encryption: Algorithm DES
:UTF-8 plainText="test" , cipheredText="19 51 -103 -116 69 55 62 26 "
:UTF-8 cipheredText="19 51 -103 -116 69 55 62 26 " , decipheredText="test"
Symmetric Encryption: Algorithm AES[Static key and keysize]
Symmetric Encryption: Algorithm AES
:UTF-8 plainText="test" , cipheredText="-125 -49 -30 14 115 -29 -11 -111 89 110 -53 -89 52 119 -88 63 "
:UTF-8 cipheredText="-125 -49 -30 14 115 -29 -11 -111 89 110 -53 -89 52 119 -88 63 " , decipheredText="test"
Symmetric Encryption: Algorithm DES
:UTF-8 plainText="test" , cipheredText="19 51 -103 -116 69 55 62 26 "
:UTF-8 cipheredText="19 51 -103 -116 69 55 62 26 " , decipheredText="test"
BUILD SUCCESSFUL (total time: 0 seconds)