summaryrefslogtreecommitdiff
path: root/lib/Travelynx.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-23 19:10:04 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-03-23 19:10:04 +0100
commit1fe8ee8e6a2e1a07f39142fb6ee722352848f625 (patch)
treea78aecd7837e68255eb16653db20a4c37afea608 /lib/Travelynx.pm
parente53ab5f78164e5637b02b7930825e53f0689ee74 (diff)
remove unused function
Diffstat (limited to 'lib/Travelynx.pm')
-rwxr-xr-xlib/Travelynx.pm8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index 1c61919..7a73919 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -27,14 +27,6 @@ my $cache_iris_rt = Cache::File->new(
lock_level => Cache::File::LOCK_LOCAL(),
);
-sub hash_password {
- my ($password) = @_;
- my @salt_bytes = map { int( rand(255) ) + 1 } ( 1 .. 16 );
- my $salt = en_base64( pack( 'C[16]', @salt_bytes ) );
-
- return bcrypt( $password, '$2a$12$' . $salt );
-}
-
sub check_password {
my ( $password, $hash ) = @_;