Skip to content

Instantly share code, notes, and snippets.

@chengen
chengen / gradle-android-output-setting
Last active June 25, 2018 09:17
gradle android output with package name, version name, version code , build type and date
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
defaultConfig {
applicationId "info.example"
minSdkVersion 16
targetSdkVersion 26
versionCode 1
@chengen
chengen / aes-256-cbc.md
Last active April 29, 2024 22:16
Using AES-256-CBC with openssl and nodejs with or whiout salt

Ecrypt data using aes-256-cbc without salt

$ echo  'this is hello world'  | openssl  aes-256-cbc -a -nosalt -k hello
HEQ/s/mOMof648tJxJvvwtHUTcq2j021RbgvqLA02lY=
-a means encoding the output using base64
-nosalt force openssl do encryption without salt
-k the encryption key