This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base64 | |
import json | |
/** | |
* Created by pgebert on 06/12/21. | |
* | |
* Decryption of an example jwt token with python. | |
*/ | |
token = 'eyJuYW1lIjogInVzZXJfbmFtZSJ9' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@file:DependsOn("org.jetbrains.kotlin:kotlin-reflect:1.6.0") | |
import kotlin.reflect.full.memberProperties | |
/** | |
* Created by pgebert on 06/12/21. | |
* | |
* Transforms a kotlin data class into a map. This is useful if you store the rows of a table | |
* in data class instances and want to get the values iterating over them. | |
*/ |
NewerOlder