License policy & token tools
Build a license policy, generate a license token from it, and validate an existing token — all computed locally in your browser with credentials you type in yourself.
License policy generator
Build the JSON license policy that goes inside a license token. The JSON updates as you choose options; copy it into the token generator below.
License token guideBasic security with the widest device coverage, including desktop browsers and Android devices on Widevine L3. No HDCP output protection.
Advanced: customize DRM fields
Changing a field marks the level as Custom. Only fields the level sets, or that differ from the spec defaults, go into the JSON.
Policy JSON
{
"policy_version": 2,
"playback_policy": {
"persistent": false,
"allowed_track_types": "ALL"
},
"security_policy": [
{
"track_type": "ALL",
"widevine": {
"security_level": 1,
"required_hdcp_version": "HDCP_NONE"
}
}
]
}License token generator
Enter your site credentials and a license policy, then generate a license token — the value used in the pallycon-customdata-v2 header.
Result
License token validator
Check the contents of a license token (base64-encoded string) using your site key.