vapor-community / bcrypt Goto Github PK
View Code? Open in Web Editor NEWSwift implementation of the BCrypt password hashing function
License: MIT License
Swift implementation of the BCrypt password hashing function
License: MIT License
I have this sample project:
https://github.com/bsarrazin/server-SkunkTrail
If you put a breakpoint in RegistrationController.swift:15
and perform this cURL request...
## Register
curl -X "POST" "http://0.0.0.0:8080/api/v1/register" \
-H "Content-Type: application/json" \
-d $'{
"email": "[email protected]",
"password": "password",
"last_name": "Ren",
"first_name": "Kylo"
}'
... you will see it takes an excessive amount of time to complete (~6sec on my 2017 MBP).
The same thing happens when you put a breakpoint in LoginController.swift:7
and perform this cURL request (after performing the first one to create the user):
## Login
curl -X "POST" "http://0.0.0.0:8080/api/v1/login" \
-H "Content-Type: application/json" \
-u [email protected]:password \
-d $'{}'
You can following the conversation I've had in the Vapor slack workspace:
https://qutheory.slack.com/archives/C0N6LGM0W/p1508611521000015
I noticed that with the latest Xcode (11.4.1) making bcrypt hashes became super slow. It is now 5 times slower to make a hash than with Xcode 11.3.1.
Do you have an idea what made it this much slower?
Was this meant to be MIT licensed like Vapor?
Hello,
I downloaded BCrypt from github, fetched package using SPM, created xocde project out of it using swift package generate-xcodeproj command. But when I integrate this framework into our project, I get unidentified developer alert from gatekeeper. I set code signing to Mac Developer for BCrypt framework as well, but it didn't help. I am using Xcode 10 and Swift 4.2. Is there is any solution or workaround for code signing issue?
I noticed that with the latest Xcode (11.4.1) making bcrypt hashes became super slow. It is now 5 times slower to make a hash than with Xcode 11.3.1.
Do you have an idea what made it this much slower?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.