We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5b07eb commit 09ed874Copy full SHA for 09ed874
src/main/java/com/crypto/codec/Base64.java
@@ -135,8 +135,8 @@ public static byte[] decode(String base64String) {
135
if (base64String == null) {
136
throw new IllegalArgumentException("Base64 string must not be null!");
137
}
138
-
139
- base64String = base64String.strip();
+ // remove trailing spaces if any
+ base64String = base64String.trim();
140
if (!isValidBase64String(base64String)) {
141
throw new IllegalArgumentException("String is not a valid Base64 string!");
142
0 commit comments