Skip to content

Instantly share code, notes, and snippets.

🙏
:)

Prem Nirmal premnirmal

🙏
:)
Block or report user

Report or block premnirmal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@premnirmal
premnirmal / XORCrypt.java
Created Sep 26, 2014
Simple yet effective XOR encryption
View XORCrypt.java
import java.io.*;
import java.util.*;
/**
* @author Prem Nirmal
*/
public class XORCrypt {
static String value = "SampleStringToBeEncrypted";
static String keyval = "thisIsAKey";
@premnirmal
premnirmal / GZipRequest.java
Last active Jan 23, 2020
Parse GZip responses using volley
View GZipRequest.java
import com.android.volley.NetworkResponse;
import com.android.volley.ParseError;
import com.android.volley.Response;
import com.android.volley.toolbox.HttpHeaderParser;
import com.android.volley.toolbox.StringRequest;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
You can’t perform that action at this time.