SkillAgentSearch skills...

BCrypt

Implementation of BCrypt encryption in Swift

Install / Use

/learn @Pepijn98/BCrypt
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

BCrypt

Swift

Usage

Hash

import BCrypt

let bytes = try BCrypt.hash(message: "test")
print(bytes.string())

Hash with salt

import BCrypt

let salt = Salt(cost: 14)
let bytes = try BCrypt.hash(message: "test", with: salt)
print(bytes.string())

Compare

import BCrypt

let bytes = try BCrypt.hash(message: "test")
let result = try BCrypt.compare(message: "test", against: bytes)
print(result) // => True
View on GitHub
GitHub Stars4
CategoryDevelopment
Updated3y ago
Forks0

Languages

Swift

Security Score

70/100

Audited on Jul 11, 2022

No findings