Web Development Knowledge Base
| |
Sections :
Vous aussi, aidez les autres développeurs, publiez vos bouts de codes utiles et vos liens préférés ... Publiez un article ! Plateforme d'envoi de gros fichiers en ligne Script PHP de boutique en ligne Mondes virtuels gratuits en 3D |
JavaAES 256 bits encrypter/decrypter - Java source codeHere is a class to encrypt/decrypt data using 256 bits AES encryption algorithm (aka Rijndael). Usage : String cryptKey = "aPb4x9q0H4W8rPs7"; String data = "hello world "; aes = new AES(); aes.se ...Base64 encoder/decoder - Java source codeEncodes and decodes to and from Base64 notation. Written by Robert Harder Main methods : /** * Encodes a byte array into Base64 notation. * Does not GZip-compress data. * * @param source The data ...MD5 hash - Java source codeHere is Java class to get MD5 hash from strings. It is useful to check the integrity of data. Usage : String hash = MD5.getHash("hello world");// public static String getHash(String str) The MD5.java source cod ...GZIP compression in JavaHere are 2 methods to compress/uncompress gzipped strings in Java. You must add an import statement at the beginning of your file :import java.util.zip.*; import java.io.*; The java code : public static String compre ...DES 256 bits encrypter/decrypter - Java source codeA java class to encrypt/decrypt data using 96 bits DES algorithm. Usage : String encrypted = DesEncrypter.cryptString("hello world", "ABCDEFABCDEFABCDEFABCDEF"); String plain = DesEncrypter.decryptStr ... |