Skip to content

Instantly share code, notes, and snippets.

View balrampandey19's full-sized avatar
🎯
Focusing

Balram Pandey balrampandey19

🎯
Focusing
View GitHub Profile
@balrampandey19
balrampandey19 / gist:96bdc04174e58ba3dd03c0aa6f7345af
Created December 29, 2016 07:24
Encrypt retrofit request body with SHA256
/**
* Created by Balram Pandey on 12/29/16.
*/
public class EncryptionInterceptor implements Interceptor {
private static final String TAG = EncryptionInterceptor.class.getSimpleName();
private static final boolean DEBUG = true;
/**
* Copyright 2013 The Finest Artist
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software