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 784223b commit 51a9c51Copy full SHA for 51a9c51
src/BinaryString.php
@@ -48,6 +48,13 @@ public static function fromBase64(string $base64): static
48
return new static(base64_decode($base64, true));
49
}
50
51
+ /**
52
+ * Decodes a Base32-encoded string to a BinaryString instance.
53
+ *
54
+ * @param string $base32 The Base32-encoded string to decode.
55
+ * @param string $alphabet The alphabet used for Base32 encoding. Defaults to Base32::DEFAULT_ALPHABET.
56
+ * @return static A new BinaryString instance containing the decoded binary data.
57
+ */
58
public static function fromBase32(string $base32, string $alphabet = Base32::DEFAULT_ALPHABET): static
59
{
60
return new static(Base32::fromBase32($base32, $alphabet));
0 commit comments