Skip to main content
Text that encodes something else, checked on strings. They check that the text decodes, not what it decodes to.
Attachment.kt

base64

base64() on String Checks that the string is Base64 with the standard alphabet and its = padding. The empty string passes. base64

base64Url

base64Url() on String Checks that the string is Base64 with the URL-safe alphabet (- and _) and no padding. The empty string passes. base64Url

base32

base32() on String Checks that the string is Base32 (RFC 4648) in uppercase, with its = padding. The empty string passes. base32

base58

base58() on String Checks that the string is not empty and is Base58, the Bitcoin alphabet without 0, O, I and l. base58

hexadecimal

hexadecimal() on String Checks that the string is not empty and has only hexadecimal digits, in either case. hexadecimal

json

json() on String Checks that the string is one valid JSON value: an object, an array, a string, a number, true, false or null. json