Forum Discussion
NetSnoopy
Cirrus
Apr 13, 2017Base64 ( b64encode) vs Base64Url Encode and Base64UrlDecode
Hello all,
The last days i had a lot of problems to build a iRule that contains strings with Base64UrlEncode.
URLencode means replace "+" to "-" and "/" to "_" and cut trailing "=".
URI::encode ...
cjunior
Nacreous
Apr 13, 2017Hi, it is an interesting your request, so I'll not ask what you are intending and just try a statement.
set var_b64 "[string map [list - + _ \/ ] $var_b64_url]"
if { [string length $var_b64] % 4 != 0 } {
append var_b64 [string repeat = [expr {4 - [string length $var_b64] % 4}]]
}
I hope it helps you.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects