fun String.aes128Encrypt(key: String): ByteArray
Encrypt this string with AES-128 using the specified key. Ported from - https://goo.gl/J1H3e5 |
|
val String.base64: String
Encodes the string into Base64 encoded one. |
|
val String.base64Decode: String
Decodes the base64 string. |
|
val String.base64DecodeBytes: ByteArray
Decodes the base64 string to byte array. It removes all extra spaces in the input string before doing the base64 decode operation. |
|
fun String.bg256(code: Int): String
Returns background colored string with given color code. fun String.bg256(): String
Returns background colored string with random color. |
|
fun String.bgGrayScale(code: Int): String
Returns background grayscale formatted string. |
|
val String.black: String |
|
val String.blink: String |
|
val String.blue: String |
|
val String.bold: String
8-bit color functions. |
|
val String.bu: String
Make the string bold and underline. |
|
val String.bui: String
Make the string bold, underline & italics |
|
fun String.color(vararg codes: Int): String
Returns formatted string with given ANSI color codes. fun String.color(color: AnsiColor): String
Returns formatted string with given ANSI color. |
|
fun String.color256(code: Int, fg: Boolean = true): String
Returns 256-color extended color set (From 0 to 255) formatted string. |
|
val String.cyan: String |
|
fun String.decodePEM(): ByteArray
Decodes a PEM-encoded block to DER. PEM (Privacy-enhanced Electronic Mail) is Base64 encoded DER certificate, enclosed between "-----BEGIN CERTIFICATE-----" and "-----END CERTIFICATE-----". The string, according to RFC 1421, can only contain characters in the base-64 alphabet and whitespaces. ToDo - Replace with PemReader. |
|
val String.done: String
Completed (Beer Glass) string. |
|
val String.err: String
Error string |
|
val String.esc: AnsiEsc
Returns an ANSI escape unicode of the string. |
|
fun String.fg256(code: Int): String
Returns foreground colored string with given color code. fun String.fg256(): String
Returns foreground colored string with random color. |
|
fun String.fgGrayScale(code: Int): String
Returns foreground grayscale formatted string. |
|
val String.gray: String |
|
fun String.grayScale(code: Int, fg: Boolean = true): String
Returns 8-bit gray scale (From 232 to 256 in color set) formatted string. |
|
val String.green: String |
|
val String.hex: String
Convert string to hex. |
|
val String.highvolt: String
High voltage string |
|
fun String.hmacSHA1(key: String): ByteArray
Encrypt this string with HMAC-SHA1 using the specified key. |
|
fun String.indent(col: Int): String
Prepend an empty string of size col to the string. |
|
val String.isIPv4: Boolean |
|
val String.italic: String |
|
val String.magenta: String |
|
val String.md5: String
Create an MD5 hash of a string. |
|
fun String.normalizeString(desiredLength: Int): String
Normalize a string to a desired length by repeatedly appending itself and/or truncating. |
|
val String.oct: String
Convert String to octal |
|
val String.red: String |
|
val String.reversed: String |
|
fun String.rightPadString(padding: Char, multipleOf: Int): String
Pad this String to a desired multiple on the right using a specified character. |
|
val String.sha1: String
Create an SHA1 hash of a string. |
|
val String.sha256: String
Create an SHA256 hash of a string. |
|
val String.strike: String |
|
val String.sux: String
Success string |
|
val String.underline: String |
|
val String.warn: String
Warn string |
|
val String.yellow: String |