-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
executable file
·29 lines (29 loc) · 1.09 KB
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash -v
./ft_ssl
./ft_ssl foobar
echo "pickle rick" | openssl md5
echo "pickle rick" | md5
echo "pickle rick" | ./ft_ssl md5
echo "Do not pity the dead, Harry." | ./ft_ssl md5 -p
echo "Pity the living." | ./ft_ssl md5 -q -r
echo "And above all," > file
./ft_ssl md5 file
./ft_ssl md5 -r file
./ft_ssl md5 -s "pity those that aren't following baerista on spotify."
echo "be sure to handle edge cases carefully" | ./ft_ssl md5 -p file
echo "some of this will not make sense at first" | ./ft_ssl md5 file
echo "but eventually you will understand" | ./ft_ssl md5 -p -r file
echo "GL HF let's go" | ./ft_ssl md5 -p -s "foo" file
echo "one more thing" | ./ft_ssl md5 -r -p -s "foo" file -s bar
echo "just to be extra clear" | ./ft_ssl md5 -r -q -p -s "foo" file
echo "testing sha256..." > file1
./ft_ssl sha256 file1
openssl sha -sha256 file1
./ft_ssl sha256 -s "wubba lubba dub dub"
echo -n "wubba lubba dub dub" | openssl sha256
echo "testing sha256..." > file2
./ft_ssl sha256 file2
openssl sha -sha256 file2
./ft_ssl sha512 -s "wubba lubba dub dub"
echo -n "wubba lubba dub dub" | openssl sha512
rm file file1 file2