Skip to content

Instantly share code, notes, and snippets.

Yang Deokgyu awesometic

Block or report user

Report or block awesometic

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
@awesometic
awesometic / transmission_torrent_done.sh
Last active Apr 11, 2019
Transmission download complete shell script for moving complete files and removing its torrent entry
View transmission_torrent_done.sh
#!/bin/bash
#
# 2017. 08. 31 Written by Awesometic
# 2017. 09. 25 Updated
# 2018. 01. 17 Updated
# Split log file when the file size is bigger than 100 KB
# Remove unimportant comments
# Clean up the descriptions
# Clean up the codes
# Add datetime for each log
@awesometic
awesometic / AES256Cipher.java
Created Aug 2, 2016
AES encryption example for android
View AES256Cipher.java
/** Created by Awesometic
* references: https://gist.github.com/dealforest/1949873
* This source is updated example code of above source code.
* I added it two functions that are make random IV and make random 256 bit key.
* It's encrypt returns Base64 encoded cipher, and also decrpyt for Base64 encoded Cipher
*/
import android.util.Base64;
import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
@awesometic
awesometic / RSACipher.java
Last active Dec 23, 2018
RSA encryption example for android
View RSACipher.java
/**
* Created by Awesometic
* It's encrypt returns Base64 encoded, and also decrypt for Base64 encoded cipher
* references: http://stackoverflow.com/questions/12471999/rsa-encryption-decryption-in-android
*/
import android.util.Base64;
import java.nio.charset.StandardCharsets;
import java.security.InvalidKeyException;
import java.security.KeyFactory;
@awesometic
awesometic / aes256Cipher.js
Last active Aug 2, 2016
AES encryption example for Node.js
View aes256Cipher.js
/**
* Created by Awesometic
* references: https://gist.github.com/ericchen/3081970
* This source is updated example code of above source code.
* I added it two functions that are make random IV and make random 256 bit key.
* It's encrypt returns Base64 encoded cipher, and also decrpyt for Base64 encoded Cipher
*/
var crypto = require('crypto');
@awesometic
awesometic / rsaCipher.js
Last active Aug 2, 2016
RSA encryption example for Node.js using node-rsa.
View rsaCipher.js
/**
* Created by Awesometic
* references: https://github.com/rzcoder/node-rsa
* RSA encryption example for Node.js with node-rsa. It's encrpyt returns Base64 encoded cipher, also decrypt for Base64 encoded cipher. RSA public key be returned in PKCS8 format.
* License for node-rsa
Copyright (c) 2014 rzcoder<br/>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
You can’t perform that action at this time.