INNER CODE UNIT · Java

toBinary

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

    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.
     */
    public static String toHex(byte[] bin) {
        return bytesToHex(bin);
    }


    /**
     * Hexadecimal string to bytes. Equivalent to {@link #sodiumHex2Bin(String)}} but static.
     *

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…