You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fun String.base64UrlDecode() =Base64.UrlSafe.decode(this).decodeToString()
123
100
124
101
/**
125
-
* See [MessageDigest section](https://docs.oracle.com/en/java/javase/11/docs/specs/security/standard-names.html#messagedigest-algorithms) of the Java Security Standard Algorithm Names Specification
126
-
*
127
-
* @receiver The string to hash
128
-
* @param algorithm The algorithm instance to use
129
-
* @param extra Additional data to digest with the string
130
-
*
131
-
* @return The string representation of the hash
102
+
* @see <a href="https://docs.oracle.com/en/java/javase/11/docs/specs/security/standard-names.html#messagedigest-algorithms">Java Security Standard Algorithm Names Specification</a>
132
103
*/
133
104
fun String.hashString(algorithm:String, varargextra:ByteArray): String=
* See [MessageDigest section](https://docs.oracle.com/en/java/javase/11/docs/specs/security/standard-names.html#messagedigest-algorithms) of the Java Security Standard Algorithm Names Specification
139
-
*
140
-
* @receiver The byte array to hash
141
-
* @param algorithm The algorithm instance to use
142
-
* @param extra Additional data to digest with the byte array
143
-
*
144
-
* @return The string representation of the hash
109
+
* @see <a href="https://docs.oracle.com/en/java/javase/11/docs/specs/security/standard-names.html#messagedigest-algorithms">Java Security Standard Algorithm Names Specification</a>
145
110
*/
146
111
fun ByteArray.hashString(algorithm:String, varargextra:ByteArray): String=
* See [MessageDigest section](https://docs.oracle.com/en/java/javase/11/docs/specs/security/standard-names.html#messagedigest-algorithms) of the Java Security Standard Algorithm Names Specification
152
-
*
153
-
* @receiver The byte array to hash
154
-
* @param algorithm The algorithm instance to use
155
-
* @param extra Additional data to digest with the byte array
156
-
*
157
-
* @return The digested data
116
+
* @see <a href="https://docs.oracle.com/en/java/javase/11/docs/specs/security/standard-names.html#messagedigest-algorithms">Java Security Standard Algorithm Names Specification</a>
158
117
*/
159
118
fun ByteArray.hash(algorithm:String, varargextra:ByteArray): ByteArray=
0 commit comments