INNER CODE UNIT · Java

sodiumHex2Bin

terl/lazysodium-java · src/main/java/com/goterl/lazysodium/LazySodium.java:92

    public byte[] sodiumHex2Bin(String hex) {
        return hexToBytes(hex);
    }

    public String toHexStr(byte[] bs) {
        return bytesToHex(bs);
    }

    public byte[] toBinary(String hex) {
        return hexToBytes(hex);
    }

    /**
     * Bytes to hexadecimal. Equivalent to {@link #sodiumBin2Hex(byte[])} but static.
     *
     * @param bin Byte array.
     * @return Hexadecimal string.
     */

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…