kjacobsen

bcrypt module

Jan 27th, 2013
4,891
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #
  2. # Export the module members - KUDOS to the chocolatey project for this efficent code
  3. #
  4.  
  5. #get the path of where the module is saved (if module is at c:\myscripts\module.psm1, then c:\myscripts\)
  6. $mypath = (Split-Path -parent $MyInvocation.MyCommand.Definition)
  7.  
  8. #find all the ps1 files in the subfolder functions
  9. Resolve-Path $mypath\functions\*.ps1 | % { . $_.ProviderPath }
  10.  
  11. #export as module members the functions we specify
  12. Export-ModuleMember -Function Get-BCryptSalt, Get-BCryptHash, Test-bCryptHash
  13.  
  14. #
  15. # Define any alias and export them - Kieran Jacobsen
  16. #
Advertisement
Add Comment
Please, Sign In to add comment