Skip to content

Instantly share code, notes, and snippets.

View awesometic's full-sized avatar
🤔

Deokgyu Yang awesometic

🤔
  • Republic of Korea
  • 14:10 (UTC +09:00)
View GitHub Profile
@awesometic
awesometic / mkdocs-material-brief-guide.md
Last active July 24, 2019 09:53
Material for MkDocs brief guide

Writing References

이 문서에선 문서 작성 시 규칙과 Material for MkDocs의 자주 쓰이는 기능들에 대해서만 설명합니다.

기본적인 마크다운 문서 작성 방법은 이 링크에 설명이 잘 되어 있기 때문에 생략합니다.

더 많은 Material for MkDocs 사용법은 아래 링크에서 확인해주세요.

@awesometic
awesometic / transmission_torrent_done.sh
Last active November 16, 2021 18:49
Transmission download complete shell script for moving complete files and removing its torrent entry
#!/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 August 2, 2016 10:10
AES encryption example for android
/** 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 January 11, 2024 07:15
RSA encryption example for android
/**
* 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 February 1, 2021 01:22
AES encryption example for Node.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 April 24, 2023 22:54
RSA encryption example for Node.js using node-rsa.
/**
* 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.