Archives for Libray

PHP : Sending sms via php script
Hi, Just a post concerning the sending of SMS from Php Script. In order to send a SMS (texto) via PHP, it is necessary to use an API allowing to request with a SMS gateway, which is the interface between Internet and GSM mobile network.   How it works ? Some gateway work easly via sending of emails with an address like (number@operator). Then, ...more»
Java – Crypto : Example, Use of SecretKey, PrivateKey, PublicKey, CSV file (CryptoTools, GenericObfuscationFile)
Hello, Through several articles, I would like present the cryptographic mechanisms, types of keys, certificate, types of algorithms ...etc: PRESENTATION : Concepts of Cryptography (concepts, types of keys symmetric/asymmetric, …) The principles of SSL The principles of Signature and Certificate The principles of Hardware Security Module HSM Encoding with base64, base64url, rfc-4648 Encryption with Blowfish (Anonymization) Encryption with AES/CBC, AES/EBC (Encryption of files) Encryption with PBEWithMD5AndDES (Encryption of files) Encryption ...more»
Java/Crypto: Encryption list providers and algo
Hi, After my previous post concerning Crypto Java/Crypto: Encrypt your message simply with Cipher, I would expose a useful class to list the providers and algo available. The provider org.bouncycastle.jce.provider.BouncyCastleProvider needs the adding of the bcprov-jdk15on-147.jar library to the classpath. Then, it's necessary to add the BC provider via the code: See the Java ™ Cryptography Architecture Sun Providers Documentation : Note: The Java ...more»
Java : Log4j overwite the file path on runtime
Hi, After my previous posts concerning Java: Log4j Concepts and Explanations and Java: Log4j in practice, I would expose a solution to overwrite the file path on runtime. Libraries needed : commons-lang3-3.1.jar, commons-logging-1.1.1.jar and log4j-1.2.15.jar. BUSINESS_LOG_FILE=D\:\\...\\... \\data\\results\\InjectorBusiness.log TECHNICAL_LOG_FILE=D\:\\...\\...\\data\\results\\InjectorTechnical.log log4j.rootCategory=ALL,CONSOLE,TECHNICALLOGFILE,BUSINESSLOGFILE #------------------- CONSOLE -------------------------- log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout log4j.appender.CONSOLE.layout.ConversionPattern= %m%n log4j.appender.CONSOLE.Threshold=INFO #------------------- FILE -------------------------- log4j.appender.TECHNICALLOGFILE=org.apache.log4j.RollingFileAppender log4j.appender.TECHNICALLOGFILE.File=injectortech.log log4j.appender.TECHNICALLOGFILE.MaxFileSize=30MB log4j.appender.TECHNICALLOGFILE.layout=org.apache.log4j.PatternLayout log4j.appender.TECHNICALLOGFILE.layout.ConversionPattern=%d{ABSOLUTE} %5p %c - %m%n log4j.appender.TECHNICALLOGFILE.Threshold=ALL #------------------- BUSINESSLOGFILE -------------------------- log4j.appender.BUSINESSLOGFILE=org.apache.log4j.DailyRollingFileAppender #log4j.appender.BUSINESSLOGFILE.File=${catalina.base}/logs/Injector.log log4j.appender.BUSINESSLOGFILE.File=injector.log log4j.appender.BUSINESSLOGFILE.DatePattern='.'yyy-MM-dd-HH log4j.appender.BUSINESSLOGFILE.MaxFileSize=30MB log4j.appender.BUSINESSLOGFILE.layout=org.apache.log4j.PatternLayout log4j.appender.BUSINESSLOGFILE.Threshold=ALL log4j.appender.BUSINESSLOGFILE.Append=true log4j.appender.BUSINESSLOGFILE.layout.ConversionPattern=%-d{MMM dd HH:mm:ss} %-5p %c %M %m%n Execute the MainApp class with the following program ...more»
Page 1 of 2:1 2 »
Copyright ® 2012 Huseyin Ozveren. No reproduction, even partial, can be used from this site and all its contents including text, documents, images, etc.. without the express permission of the author.