mirror of
https://github.com/LucasVbr/data-encryption-standard.git
synced 2026-05-14 01:22:07 +00:00
Ajout de Des.bitsToString et Des.stringToBits(erreur) + tests
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user