Skip to content

TryDecode Method ​

Definition ​

  • Namespace: JASE.Crypto
  • Assembly: JASE.Crypto.dll

bool TryDecode(ReadOnlySpan<char> input, out byte[] bytes) ​

csharp
bool TryDecode(ReadOnlySpan<char> input, out byte[] bytes)

Attempts to decode a Base32 (RFC 4648) string into bytes without throwing.

Parameters ​

NameDescription
bytesWhen this method returns , contains the decoded bytes. When this method returns , contains .
inputBase32 text to decode.

Returns ​

if decoding succeeded; otherwise .