For symmetic encryption, you can use the following:
To encrypt:
openssl aes-256-cbc -salt -a -e -in plaintext.txt -out encrypted.txt
To decrypt:
import 'package:flutter/material.dart'; | |
class OverlayWithHole extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar(title: Text("Flutterclutter: Holes")), | |
body: _getExperimentOne() | |
); | |
} |
@JS() | |
library vue_app; | |
import 'package:flutter/material.dart'; | |
import 'dart:ui' as dart_ui_web; | |
import 'dart:html'; | |
import 'package:js/js.dart'; | |
import 'dart:js'; | |
@JS('console.log') |
use std::sync::mpsc::channel; | |
use std::thread; | |
fn main() { | |
let (tx, rx) = channel::<Box<dyn Fn() + Send>>(); | |
thread::spawn(move || { | |
let _ = tx.send(Box::new(|| { | |
println!("wtf"); | |
})); | |
let _ = tx.send(Box::new(|| { |
use lazy_static::lazy_static; | |
use std::os::raw::{c_int}; | |
use std::sync::Mutex; | |
use std::ffi::c_void; | |
lazy_static! { | |
static ref REAL_CALLBACK: Mutex<Option<Box<FnMut(c_int, c_int) -> c_int + Send>>> = Default::default(); | |
} |
#[macro_use] | |
extern crate lazy_static; | |
use std::sync::Mutex; | |
use std::collections::HashMap; | |
lazy_static! { | |
static ref HASHMAP: Mutex<HashMap<u32, String>> = Mutex::new({ | |
let mut m = HashMap::new(); | |
m.insert(0, String::from("foo")); | |
m.insert(1, String::from("bar")); |
#[macro_use] | |
extern crate lazy_static; | |
use std::collections::HashMap; | |
use std::sync::{Mutex, Arc}; | |
use std::thread; | |
lazy_static! { | |
static ref bank: Mutex<HashMap<Man, u32>> = Mutex::new({ | |
let mut m = HashMap::new(); |
#include <stdio.h> | |
#include <stdbool.h> | |
#include <stddef.h> | |
#include <stdint.h> | |
void hello() | |
{ | |
printf("Hello world!\n"); | |
} |
import 'package:flutter/material.dart'; | |
void main() => runApp(new MyApp()); | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. | |
@override | |
Widget build(BuildContext context) { | |
return new MaterialApp( | |
title: 'Flutter Demo', |
import 'package:flutter/material.dart'; | |
import 'radial_logo.dart'; | |
void main() => runApp(new MyApp()); | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. | |
@override | |
Widget build(BuildContext context) { | |
return new MaterialApp( |