Skip to content

Instantly share code, notes, and snippets.

View M3ales's full-sized avatar

Matthew M3ales

  • Luna Software Solutions
  • South Africa
  • 05:06 (UTC +02:00)
View GitHub Profile
@M3ales
M3ales / gsuite-less-than-secure.md
Last active February 17, 2022 06:17
Google GSuite Enable Less Than Secure

Google GSuite Enable Less Than Secure Apps

Introduction

For when you need to use gmail smtp without OAuth or want to link up a less than secure app. This specifically details the extra steps needed for GSuite accounts.

Steps

  • Login to a Domain Administrator Account
@M3ales
M3ales / rsa_pem.dart
Created September 5, 2022 09:41 — forked from proteye/rsa_pem.dart
How to encode/decode RSA private/public keys to PEM format in Dart with asn1lib and pointycastle
import 'dart:convert';
import 'dart:math';
import 'dart:typed_data';
import "package:pointycastle/export.dart";
import "package:asn1lib/asn1lib.dart";
List<int> decodePEM(String pem) {
var startsWith = [
"-----BEGIN PUBLIC KEY-----",
"-----BEGIN PRIVATE KEY-----",