Skip to content

Instantly share code, notes, and snippets.

View choc-design's full-sized avatar

Andreas Cichocki choc-design

View GitHub Profile
@sroddy
sroddy / SimpleEncryptionPlugin.kt
Last active December 26, 2018 10:38
Flutter Simple Cryptor
package com.bendingspoons.simpleencryption
import com.tozny.crypto.android.AesCbcWithIntegrity.*
import io.flutter.plugin.common.MethodChannel
import io.flutter.plugin.common.MethodChannel.MethodCallHandler
import io.flutter.plugin.common.MethodChannel.Result
import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.PluginRegistry.Registrar
class SimpleEncryptionPlugin() : MethodCallHandler {