Skip to content

Instantly share code, notes, and snippets.

chengen /
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
-a means encoding the output using base64
-nosalt force openssl do encryption without salt
-k the encryption key
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: ''
android {
compileSdkVersion 26
defaultConfig {
applicationId "info.example"
minSdkVersion 16
targetSdkVersion 26
versionCode 1