Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions contributed/Bcrypt Hash.spBundle/command.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>author</key>
<string>Romain Biard</string>
<key>category</key>
<string>Hash</string>
<key>command</key>
<string>./encrypt.sh</string>
<key>description</key>
<string>Encrypts a string using BCRYPT algorithm</string>
<key>input</key>
<string>selectedtext</string>
<key>input_fallback</key>
<string>entirecontent</string>
<key>keyEquivalent</key>
<string></string>
<key>name</key>
<string>BCRYPT</string>
<key>output</key>
<string>replaceselection</string>
<key>scope</key>
<string>inputfield</string>
<key>uuid</key>
<string>37A7Ad4C-AB7C-4CEC-9451-FA551C16400F</string>
</dict>
</plist>
5 changes: 5 additions & 0 deletions contributed/Bcrypt Hash.spBundle/encrypt.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/php
<?php
$input = trim(fgets(STDIN));
print password_hash($input, PASSWORD_BCRYPT);
?>