Skip to content

Instantly share code, notes, and snippets.

Verifying my Blockstack ID is secured with the address 127tfX8xN9h1Ji6gqg7qLCEHnvYgtS6tdW https://explorer.blockstack.org/address/127tfX8xN9h1Ji6gqg7qLCEHnvYgtS6tdW
@trzye
trzye / SAStoken.kt
Created April 11, 2018 19:30
Generates a SAS Token for Azure REST Api Calls (Particularly for Service Bus Services like Event Hub & Queues) in Kotlin
import java.net.URLEncoder
import java.time.Instant
import java.util.*
import javax.crypto.Mac
import javax.crypto.spec.SecretKeySpec
const val ONE_HOUR = 3600L;
/**
*