Skip to content

Instantly share code, notes, and snippets.

@sasijarvis
sasijarvis / openssl_encrypt_decrypt.php
Created May 6, 2019 05:57 — forked from joashp/openssl_encrypt_decrypt.php
Simple PHP encrypt and decrypt using OpenSSL
<?php
/**
* simple method to encrypt or decrypt a plain text string
* initialization vector(IV) has to be the same when encrypting and decrypting
*
* @param string $action: can be 'encrypt' or 'decrypt'
* @param string $string: string to encrypt or decrypt
*
* @return string
*/
@sasijarvis
sasijarvis / quote.dart
Created March 27, 2019 18:00 — forked from mjohnsullivan/quote.dart
Simple Flutter app to retrieve and display a quote of the day
import 'dart:async';
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override