Permalink
Browse files

Version bump

  • Loading branch information...
skinkade committed Apr 24, 2016
1 parent b2fab37 commit 0205ea7f732609681955890f9541bde21097daa5
Showing with 7 additions and 17 deletions.
  1. +4 −4 META.info
  2. +3 −13 lib/Crypt/Bcrypt.pm6
View
@@ -1,13 +1,13 @@
{
"name" : "Crypt::Bcrypt",
"version" : "1.3",
"authors" : [ "github:carbin", "Shawn Kinkade" ],
"description" : "Bcrypt password hashing in Perl6",
"version" : "1.3.1",
"authors" : [ "github:carbin", "github:skinkade" ],
"description" : "Easy bcrypt password hashing",
"depends" : [ ],
"build-depends" : [ "LibraryMake", "Crypt::Random" ],
"provides" : {
"Crypt::Bcrypt" : "lib/Crypt/Bcrypt.pm6"
},
"resources" : [ "crypt_blowfish.so", "crypt_blowfish.dll" ],
"resources" : [ "crypt_blowfish.so" ],
"source-url" : "git://github.com/skinkade/p6-Crypt-Bcrypt.git"
}
View
@@ -22,27 +22,17 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
=end LICENSE
sub library returns Str {
state Str $path;
unless $path {
if $*DISTRO.is-win {
$path = %?RESOURCES<crypt_blowfish.dll>.Str;
} else {
$path = %?RESOURCES<crypt_blowfish.so>.Str;
}
}
$path;
}
constant BCRYPT = %?RESOURCES<crypt_blowfish.so>.Str;
sub crypt(Str $key is encoded('utf8'), Str $setting is encoded('utf8'))
is native(&library)
is native(BCRYPT)
returns Str
{ * }
sub crypt_gensalt(Str $prefix is encoded('utf8'), uint32 $count, Buf $input, size_t $size)
is native(&library)
is native(BCRYPT)
returns Str
{ * }

0 comments on commit 0205ea7

Please sign in to comment.