Var shared_key as String = "kw4qSnpSwXzgiv5yxYpZZmFEd9QAeiKTQ6OuyMja"
Var signing_string as String = "licenseSpring\ndate: Tue, 07 Jun 2011 20:51:35 GMT"
Var hash As String
hash = EncodeBase64(Crypto.HMAC(shared_key, signing_string, Crypto.HashAlgorithms.SHA256))
MessageBox(hash)
//Q4BAhsu1Xw3LsBZ+BCLShWQDbmJ2j/eFXzvF9T6n9tU=
I am getting two different hashed strings, but expect they should be the same. Are these algorithms equivalent?
For DRM / licensing of Xojo Desktop applications, I’ve built an end-to-end Xojo code system
No plugins, no black boxes!
TPLM features a drop-in Desktop module for protecting your software and a Xojo Web app that acts as an online licensing server. The Web panel provides hooks to integrate with FastSpring ready to go. The Desktop module offers many standard DRM features such as hardware-locked licensing, verified online activation, and offline licensing.