Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. enable secret foobar
  2.  
  3. enable secret 5 $1$pdQG$0WzLBXV98voWIUEdIiLm11
  4.  
  5. $ openssl passwd -1 -salt pdQG -table foobar
  6. foobar $1$pdQG$0WzLBXV98voWIUEdIiLm11
  7. $
  8.  
  9. openssl passwd -salt `openssl rand -base64 3` -1 "cleartext"
  10.  
  11. -> Indicates MD5 algorithm
  12. | -> Salt
  13. | | -> Salt + Password Hash
  14. | | |
  15. $1$mERr$RchIrJirmCXltFBZ2l50l/
  16.  
  17. #!/usr/bin/perl
  18. use Crypt::PasswdMD5;
  19. my $hash = unix_md5_crypt('password','salt')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement