kjacobsen icon

bcrypt module

kjacobsen | PRO | 01/27/13 11:44:44 AM UTC | 0 ⭐ | 4933 👁️ | Never ⏰ | []
PowerShell |

570 B

|

None

|

0 👍

/

0 👎

#
# Export the module members - KUDOS to the chocolatey project for this efficent code
#
 
#get the path of where the module is saved (if module is at c:\myscripts\module.psm1, then c:\myscripts\)
$mypath = (Split-Path -parent $MyInvocation.MyCommand.Definition)
 
#find all the ps1 files in the subfolder functions
Resolve-Path $mypath\functions\*.ps1 | % { . $_.ProviderPath }
 
#export as module members the functions we specify
Export-ModuleMember -Function Get-BCryptSalt, Get-BCryptHash, Test-bCryptHash
 
#
# Define any alias and export them - Kieran Jacobsen
#

Comments