Skip to content

Instantly share code, notes, and snippets.

Teoman Soygul soygul

Block or report user

Report or block soygul

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
@soygul
soygul / crypt.sh
Created Oct 2, 2018
Encrypt/Decrypt Files Using OpenSSL
View crypt.sh
# encrypt
openssl enc -in test.txt -aes-256-cbc -pass pass:mypass -out test.txt.enc
# decrypt
openssl enc -in test.txt.enc -d -aes-256-cbc -pass pass:mypass -out test.txt
# valid password sources (as of OpenSSL 1.1.1, see 'man openssl' for more recent info):
# -pass pass:mypass
# -pass env:somevar
# -pass file:somepathname
@soygul
soygul / service.java
Last active Oct 30, 2018
Android local service binding - code snippet
View service.java
/*************************
* Local service binding *
*************************/
private final IBinder binder = new WorkerServiceBinder();
/**
* Returns an instance of this service so binding components can directly call public methods of this service.
*/
public class WorkerServiceBinder extends Binder {
You can’t perform that action at this time.