Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

KarpelesLab/vncpasswd

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoDoc

vncpasswd

Allows to easily encrypt passwords in order to generate value in ~/.vnc/passwd files.

Note that this file is typically encrypted using the very outdated DES algorithm using a fixed not-so-secret secret, and as such is very insecure. Also the password is limited to 8 characters, and any characters after that will typically be ignored.

While it would have been nice to depend on Go's implementation of DES, the way it is implemented in VNC differs and generate different results. As such it was easier to copy an existing implementation and port it to Go.

Usage

	// Encrypt
	pass := vncpasswd.Crypt("password")

	// Decrypt
	value := vncpasswd.Decrypt(pass)

About

Encryption and decryption of DES encrypted VNC passwords

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.