Skip to content

Instantly share code, notes, and snippets.

View flschweiger's full-sized avatar

Frederik Schweiger flschweiger

View GitHub Profile
@flschweiger
flschweiger / AesKeyGenerator.java
Last active March 2, 2020 09:28
Create a symmetric key inside the Android Keystore.
// Get the KeyGenerator instance for AES
KeyGenerator keyGenerator = KeyGenerator.getInstance(
KeyProperties.KEY_ALGORITHM_AES, "AndroidKeyStore");
// Create a KeyGenParameterSpec builder and
// set the alias and different purposes of the key
KeyGenParameterSpec.Builder builder = new KeyGenParameterSpec.Builder(
"myAwesomeSecretKey01",
KeyProperties.PURPOSE_ENCRYPT | KeyProperties.PURPOSE_DECRYPT);
@flschweiger
flschweiger / flutter.rb
Created July 12, 2020 00:10
A Homebrew formula for the Flutter SDK
class Flutter < Formula
desc "Google’s UI toolkit for mobile, web, and desktop from a single codebase"
homepage "https://flutter.dev"
url "https://storage.googleapis.com/flutter_infra/releases/releases_macos.json"
version "sdk"
require 'json'
bottle :unneeded
@flschweiger
flschweiger / Flutter.format
Created February 16, 2019 20:19
Flutter color format file for Sip Color Picker
{
"name" : "Flutter",
"clipboardFormat" : {
"function" : "concat",
"y" : ")",
"x" : {
"x" : "const Color(0xFF",
"function" : "concat",
"y" : {
"x" : "hex[red]hex[green]hex[blue]",