https://github.com/zheeeng/fp455
Flower Password based on ReasonML
https://github.com/zheeeng/fp455
bucklescript crypto flower-password reasonml
Last synced: 3 months ago
JSON representation
Flower Password based on ReasonML
- Host: GitHub
- URL: https://github.com/zheeeng/fp455
- Owner: zheeeng
- License: mit
- Created: 2018-06-06T13:33:59.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-02-03T12:55:16.000Z (about 2 years ago)
- Last Synced: 2025-01-24T12:45:57.816Z (about 1 year ago)
- Topics: bucklescript, crypto, flower-password, reasonml
- Language: Reason
- Homepage:
- Size: 174 KB
- Stars: 18
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fp455
Flower Password based on ReasonML
[](https://snyk.io/test/github/zheeeng/fp455)
[](https://reasonml.github.io//)
[]()
[](https://travis-ci.org/zheeeng/fp455)
[](https://www.npmjs.com/package/fp455)
[](https://unpkg.com/fp455/dist/fp455.min.js)
[More about this tool on official website](http://flowerpassword.com/)
---
## The Command Line
fp455-cli is a command line for generate flower password. fp455 means flower pa(4)s(5)s(5)word.
### Installation
```sh
yarn global add fp455
npm install -g fp455
```
**suggestion**:
alias fp455 for not saving encrypt commands
```
# preserve the leading space
alias fp=' fp455'
```
### Usage
```sh
fp455 password key [length] -- generate the password
fp455 -h, fp455 --help -- get the help infomation
```
**note**: length is in range [1, 32]
### Example
```sh
$ fp455 abc123456 fp455
> e2fbb727dA3638b6
$ fp455 abc123456 fp455 32
> e2fbb727dA3638b638C4b9f9Bee181ad
$ fp no-history-pass fp455
> Kc8E6a281F02Cd28
```
---
## As Dependency
### Installation
```sh
yarn add fp455
npm install -s fp455
```
## Usage
In Module system:
```javascript
import fp455 from 'fp455'
// (string, string, int) -> string
fp455.calculate('abc123456 ', 'fp455', 16)
```
In browser:
```javascript
const pass = fp455.calculate('abc123456 ', 'fp455', 16)
```
**CDN**: `
https://unpkg.com/fp455/dist/fp455.min.js
`
## License
MIT