Skip to content

Instantly share code, notes, and snippets.

View MillerAdulu's full-sized avatar
💭
I will be slow to respond.

Miller Adulu MillerAdulu

💭
I will be slow to respond.
View GitHub Profile
@MillerAdulu
MillerAdulu / jwttoobject.dart
Last active December 2, 2019 08:57
Decodes a JWT and returns results as a map
mixin JWTToObject {
Map<String, dynamic> parseJwt(String token) {
final parts = token.split('.');
if (parts.length != 3) {
throw Exception('invalid token');
}
final payload = _decodeBase64(parts[1]);
final payloadMap = json.decode(payload);
if (payloadMap is! Map<String, dynamic>) {

Introduction to Python

Visit: bit.do/websec-gist for links to resources


Variables

  • Variables are containers for storing data values.