Increasingly, developers view strings as a portable means of storing and communicating arbitrary data, such as numeric values. A real world example involved storing the binary values of encrypted passwords as strings in a database.While inefficient, it is generally feasible to convert arbitrary byte arrays to strings and then reverse the process. However, the Arbitrary binary data may not be representable in any character setas a string, because not all bit patterns represent valid characters in most character sets. Consequently, programmers must never directly convert a byte array to a string. A real world example involved storing the binary values of encrypted passwords as strings in a database.
Noncompliant Code Example
...