mirror of
https://github.com/LucasVbr/data-encryption-standard.git
synced 2026-05-13 17:12:10 +00:00
23 lines
465 B
Java
23 lines
465 B
Java
package cryptography.test;
|
|
|
|
import cryptography.Des;
|
|
|
|
import java.util.Arrays;
|
|
|
|
public class testDes {
|
|
|
|
public static void testStringToBits() {
|
|
System.out.println(Arrays.toString(Des.stringToBits("Bonjour")));
|
|
}
|
|
|
|
public static void testBitsToString() {
|
|
|
|
System.out.println(Des.bitsToString(Des.stringToBits("Bonjour")));
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
testStringToBits();
|
|
testBitsToString();
|
|
}
|
|
}
|