[root@cerebrus ~]# mkdir -p /admin/bkp |
[root@cerebrus ~]# cd /admin/bkp/ |
[root@cerebrus bkp]# cp -pr /etc/shadow ./ |
[root@cerebrus bkp]# ls -l total 4 -r-------- 1 root root 1499 2009-02-23 23:36 shadow |
[root@cerebrus bkp]# openssl enc
-aes-256-cbc -salt -a -in ./shadow -out ./shadow.enc enter aes-256-cbc encryption password: Verifying - enter aes-256-cbc encryption password: |
[root@cerebrus bkp]# ls -l total 8 -r-------- 1 root root 1499 2009-02-23 23:36 shadow -rw-r--r-- 1 root root 2060 2009-03-02 10:21 shadow.enc |
[root@cerebrus bkp]# cat shadow.enc U2FsdGVkX1+cCnT38MhselREo1svICu1MZiWCXq+FfYbEhehB9eiDk3vOYJLZDOv JDFbfX4ODOb/73eyenNfLBvdmNZN1wYE6WVsXetoXXVgFrRUcaeSMX9y0HRenury 8QZCdFLHOIzZnuRiyTDdSRONJN7N+mRY2bzSX4PVRWFM55DkIz1gevJpxDfF2zex GXDBh74+529esv9JI1859y/HFvBnIxtNbwdE+PNTql6kSLzWmzZI8qNJxpwbZLJ9 rYwi2nx+F8jUhdSlQlwYS22/k5pwh4nAwHYF32R/sUuwRipkldBje5DUOSC5ruof ZtUbfARQ1G5z41voME+VkO50oAaFXpzlCiVzwRCbAorlMEAM3mlgVuVQjiqxx2fc uwG9vkyfXsQIZI+qUl20e6t3dgjaOYW3qheygnnyKE4k+iw0TQ1+Dh1Em8rzImuE DkAvdW1ykXg047dtaGgyy2pmttb6y2fYOyrlSExuSc3UIsqqbk8PySKUIvp9jxoU s+YXXCAcO5NGzQmGyTacQ9Arpfwid+bjN4BfNfuxDRPmulETpb2NUGGQjxaRKfD/ rGbzJbX1QPiE5WE/7MhUut6g4Obnon5+JS2SuaPoLaZAeWqvF1+tk97oprNohrkf D4AOei3jYTl0HeS/0yKeOex700Pq1RGBMcaNFAZ48Mx7lUe9qQTiRgS9KYGoimbq 5W7HCBkMo8fI2bsbVPSXphvQ5C+ceQmMDfdeZjNI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o1sfX6RWsKl1aNG7WKk4IPkKBc ZY2Ke0qfjKUfk2j5uEk0iYLPnFMnVqDXHN+Q/TRXhE2OGt3pgGYHQDhlvvT/tXNo WZfcBaWJHtGX0fHAy549BRjZ+ugXnuFbdrj3l/rdq9cVGLWVzykJsITIQeGWqR/q gwLNWw+xWPo8BlkHc/y45HBmdEtxlPKEfDaqcCqZ7K8= |
[root@cerebrus bkp]# openssl enc -d
-aes-256-cbc -salt -a -in ./shadow.enc -out ./shadow.plain enter aes-256-cbc decryption password: |
[root@cerebrus bkp]# ls -l total 12 -r-------- 1 root root 1499 2009-02-23 23:36 shadow -rw-r--r-- 1 root root 2060 2009-03-02 10:21 shadow.enc -rw-r--r-- 1 root root 1499 2009-03-02 10:31 shadow.plain |