Skip to content

Instantly share code, notes, and snippets.

Andriy pro100svitlo

  • fromAtoB.com
  • Berlin
Block or report user

Report or block pro100svitlo

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
@milosmns
milosmns / MockParcel.java
Created May 31, 2018
A mock implementation of the `android.os.Parcel` interface (that actually stores values so you can test your Parcelable implementations)
View MockParcel.java
package me.angrybyte.util;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import org.mockito.stubbing.Answer;
import java.util.LinkedList;
import java.util.List;
@itarato
itarato / encryption.java
Created Sep 28, 2014
Java AES CBC encryption example
View encryption.java
package com.company;
import javax.crypto.Cipher;
import javax.crypto.Mac;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import java.security.MessageDigest;
import java.security.SecureRandom;
public class Main {
You can’t perform that action at this time.