https://github.com/ecnepsnai/jettyobf
A Go implementation of the Jetty Password Obfuscation Algorithm
https://github.com/ecnepsnai/jettyobf
go golang java jetty
Last synced: 3 months ago
JSON representation
A Go implementation of the Jetty Password Obfuscation Algorithm
- Host: GitHub
- URL: https://github.com/ecnepsnai/jettyobf
- Owner: ecnepsnai
- License: mit
- Created: 2020-05-13T18:34:41.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-16T03:26:19.000Z (almost 5 years ago)
- Last Synced: 2025-01-18T09:53:11.419Z (5 months ago)
- Topics: go, golang, java, jetty
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jettyobf
[](https://goreportcard.com/report/github.com/ecnepsnai/jettyobf)
[](https://godoc.org/github.com/ecnepsnai/jettyobf)
[](https://github.com/ecnepsnai/jettyobf/releases)
[](https://github.com/ecnepsnai/jettyobf/blob/master/LICENSE)jettyobf is a go implementation of the [Jetty Password Obfuscation Algorithm](https://www.eclipse.org/jetty/documentation/current/configuring-security-secure-passwords.html).
Obfuscated passwords have no security benefits. Obfuscated passwords are easily reverted to their plain-text form.
**THIS IS NOT A REPLACEMENT FOR PROPER PASSWORD HASHING OR ENCRYPTION.**# Usage
## Obfuscate
```go
input := "hunter2"
result := jettyobf.Obfuscate(input)
fmt.Println(result) // will print 'OBF:1jn91yte1uvc1z0f1uuu1yt81jk9'
```## Deobfuscate
```go
input := "OBF:1jn91yte1uvc1z0f1uuu1yt81jk9"
result := jettyobf.Deobfuscate(input)
fmt.Println(result) // will print 'hunter2'
```