public static boolean isEncrypted(String blobIdString) throws IOException {
    DataInputStream stream =
        new DataInputStream(new ByteBufferInputStream(ByteBuffer.wrap(Base64.decodeBase64(blobIdString))));
    return (stream.readShort() >= BLOB_ID_V3) && ((stream.readByte() & IS_ENCRYPTED_MASK) != 0);
  }
Check if encrypted bit in blobId is set based on original blobId string.
@return {@code true} if encrypted bit in this string is set. {@code false} otherwise
@throws IOException If parsing a string blobId fails.
ambry-commons/src/main/java/com/github/ambry/commons/BlobId.java