Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. 1)
  2.  
  3. https://www.mkssoftware.com/docs/man1/openssl_passwd.1.asp
  4. //Zwykłe generowanie
  5. openssl passwd -crypt <hasło>
  6. lub pierwszy skrypt z 2)
  7. //Zapisanie hasha do pliku
  8. touch skrypt
  9. chmod 755 skrypt
  10.  
  11. #!/bin/bash
  12. echo $1 | openssl aes-256-cbc -a -salt -out hash.txt -k pass
  13.  
  14. //Odczyt hasha i dekodowanie
  15. touch encode
  16. chmod 755 encode
  17.  
  18. #!/bin/bash
  19. openssl aes-256-cbc -d -a -in hash.txt -k pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement