All Projects → jstrieb → Link Lock

jstrieb / Link Lock

Licence: mit
Password-protect URLs using AES in the browser; create hidden bookmarks without a browser extension

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Link Lock

Python-File-Encryptor
Encrypt and Decrypt files using Python (AES CBC MODE)
Stars: ✭ 51 (-87.8%)
Mutual labels:  encryption, aes, aes-encryption
Hat.sh
encrypt and decrypt files in your browser. Fast, Secure client-side File Encryption and Decryption using the web crypto api
Stars: ✭ 886 (+111.96%)
Mutual labels:  encryption, aes, aes-encryption
Gonnacry
A Linux Ransomware
Stars: ✭ 341 (-18.42%)
Mutual labels:  encryption, aes, aes-encryption
EncrypC
🔑 File Encryption Application using Python.
Stars: ✭ 14 (-96.65%)
Mutual labels:  encryption, aes, aes-encryption
Cross Platform Aes
Simple cross-platform encryption and decryption using AES
Stars: ✭ 127 (-69.62%)
Mutual labels:  encryption, aes, aes-encryption
Segnalibro
Save and comment your favorite links from the web. It's just a bookmarking application.
Stars: ✭ 14 (-96.65%)
Mutual labels:  bookmark, web-application
PassLock
PassLock is a medium-security password manager that encrypts passwords using Advanced Encryption Standards (AES)
Stars: ✭ 44 (-89.47%)
Mutual labels:  aes, aes-encryption
abrute
Multi-threaded AES Brute Force File Decryption
Stars: ✭ 22 (-94.74%)
Mutual labels:  aes, aes-encryption
libVES.c
VESvault End-to-End Encryption API: Encrypt Everything Without Fear of Losing the Key
Stars: ✭ 28 (-93.3%)
Mutual labels:  aes, aes-encryption
FlashPaper
One-time encrypted password/secret sharing
Stars: ✭ 85 (-79.67%)
Mutual labels:  encryption, aes
OormiPass
Free open source cross platform password manager
Stars: ✭ 50 (-88.04%)
Mutual labels:  encryption, aes
cryptalk
HTML5/Node.js based, client side (E2EE) encrypted instant chat
Stars: ✭ 73 (-82.54%)
Mutual labels:  aes, aes-encryption
CryptoKnight
CryptoKnight is a general purpose cryptography desktop app
Stars: ✭ 18 (-95.69%)
Mutual labels:  aes, aes-encryption
openssl
A functions wrapping of OpenSSL library for symmetric and asymmetric encryption and decryption.
Stars: ✭ 199 (-52.39%)
Mutual labels:  aes, aes-encryption
Laravel Database Encryption
A package for automatically encrypting and decrypting Eloquent attributes in Laravel 5.5+, based on configuration settings.
Stars: ✭ 238 (-43.06%)
Mutual labels:  encryption, aes
Jsrsasign
The 'jsrsasign' (RSA-Sign JavaScript Library) is an opensource free cryptography library supporting RSA/RSAPSS/ECDSA/DSA signing/validation, ASN.1, PKCS#1/5/8 private/public key, X.509 certificate, CRL, OCSP, CMS SignedData, TimeStamp, CAdES JSON Web Signature/Token in pure JavaScript.
Stars: ✭ 2,760 (+560.29%)
Mutual labels:  encryption, aes
AES
AES for microcontrollers (Arduino & Raspberry pi)
Stars: ✭ 116 (-72.25%)
Mutual labels:  encryption, aes
EasyAES
AES encrypt/decrypt, Android, iOS, php compatible(兼容php, Android, iOS平台)
Stars: ✭ 79 (-81.1%)
Mutual labels:  encryption, aes
Encrypt
🔒 A set of high-level APIs over PointyCastle for two-way cryptography.
Stars: ✭ 199 (-52.39%)
Mutual labels:  encryption, aes
Privy
An easy, fast lib to correctly password-protect your data
Stars: ✭ 230 (-44.98%)
Mutual labels:  encryption, aes

Link Lock

Password-protect URLs using AES in the browser.

Link Lock now supports secure, hidden bookmarks via bookmark knocking! Read more here.

About

Link Lock is a tool for encrypting and decrypting URLs. When a user visits an encrypted URL, they will be prompted for a password. If the password is correct, Link Lock retrieves the original URL and then redirects there. Otherwise, an error is displayed. Users can also add hints to display near the password prompt.

Each encrypted URL is stored entirely within the link generated by the application. As a result, users control all the data they create with Link Lock. Nothing is ever stored on a server, and there are no cookies, tracking, or signups.

Link Lock has many uses:

  • Store private bookmarks on a shared computer
  • Encrypt entire web pages (via URL Pages)
  • Send sensitive links over public or insecure channels (e.g., posting links to a public website that require a password to access)
  • Implement simple CAPTCHAs – particularly effective against basic web scrapers that do not respect robots.txt
  • Add a password to shared Dropbox or Google Drive links
  • Share password-protected magnet links and torrents
  • Evade censorship

Link Lock uses AES in GCM mode to securely encrypt passwords, and PBKDF2 and salted SHA-256 (100,000 iterations) for secure key derivation. Encryption, decryption, and key derivation are all performed by the SubtleCrypto API. The initialization vector is randomized by default, but the salt is not. Randomization of both the initialization vector and salt can be enabled or disabled by the user via "advanced options." The salt and initialization vector are sent with the encrypted data if they are randomly generated. The API is versioned such that old encrypted links will always work, even if later versions of Link Lock are updated to be more secure. Please read the code (api.js in particular) for more information.

Read the Hacker News discussion here.

Also discussed on r/netsec and discussed on r/programming.

Examples

Disclaimer

The code was written to be read. Please read it, especially if you don't trust me to build a secure encryption application. In particular:

  • I am a college student, not a security professional – there may be best practices I am not aware of.
  • Once someone decrypts a link, they can share the original URL as much as they want. Only share encrypted links with trusted people.
  • I am not comfortable using JavaScript, and I don't have a firm grasp of the nuances of the language – there may be bugs that I don't even know to check for.
  • This is the first project I have ever done using encryption – there is likely a subtle mistake somewhere.
  • Most of the encryption/decryption code is based on MDN tutorials for the SubtleCrypto API.

Usage

  • Create a locked link here: https://jstrieb.github.io/link-lock.
  • Once you have a locked link, create a hidden bookmark here: https://jstrieb.github.io/link-lock/hidden.
  • Use the advanced options when creating a link to make the encryption more secure (at the cost of a longer link).
    • By default, the initialization vector is randomized for security, but this can be disabled, even though doing so is a vulnerability.
    • By default, the salt used to hash the password during key derivation is not randomized, but this can be enabled.
  • To bookmark a locked link, drag it from the output box to the bookmarks bar. Alternatively, visit the locked link and bookmark it before entering the password.
  • If you lose the password, it is almost impossible to recover the original link. The strong security guaranteed by encryption can be a blessing or a curse if you are not careful!
  • Currently, the only way to recover a lost password is by trying all possible options (very slowly) by brute force. An example application to brute force Link Lock URLs can be found here: https://jstrieb.github.com/link-lock/bruteforce.
  • If you receive a Link Lock URL that you do not trust, decrypt it using this interface that does not automatically redirect: https://jstrieb.github.com/link-lock/decrypt.

Evading Censorship

Link Lock can be used to evade censorship. If you are concerned that sending links with the jstrieb.github.io domain name will put you at risk, just replace the domain with another. For example, share

https://wikipedia.org/#eyJ2IjoiMC4wLjEiLCJlIjoiYUgrNDhISkpBWWhkeFFMc0l0VlIzeFlma21mYlZCOFJ5Zz09In0=

instead of

https://jstrieb.github.io/link-lock/#eyJ2IjoiMC4wLjEiLCJlIjoiYUgrNDhISkpBWWhkeFFMc0l0VlIzeFlma21mYlZCOFJ5Zz09In0=

Any domain can be used in place of wikipedia.org. That way, a malicious third-party who clicks the altered link will be taken to a valid page, which helps alleviate suspicion. When sharing the password to unlock the link, explain how to switch out the domain name with either jstrieb.github.io/link-lock, or with the path to a local clone of Link Lock. Using a local copy is particularly recommended for evading censorship, since no request to my domain is ever made.

Alternatively paste the altered link directly into the decrypt page. This page does not check the domain name of the pasted link, only the "fragment" (the part after the #). So, for example, the Wikipedia link above can be pasted directly in there and decrypted without changing the domain.

Using a local copy of URL Pages is also recommended. Entire web pages can be shared safely and secretly this way.

Project Status

This project is actively maintained. If there are no recent commits, it means that everything has been running smoothly! Even if the link storage protocol is updated, Link Lock is designed to be 100% backwards-compatible, so your locked links will never break.

Even if something were to happen to me, and I could not continue to work on the project, Link Lock will continue to work as long as my GitHub account is open and the jstrieb.github.io domain is online.

Other Versions & Related Projects

Acknowledgments

Thank you to those who offered feedback on this program before its release. Thanks also to the Hacker News second-chance pool.

Thanks to @IAmMandatory for discovering a reflected XSS vulnerability resulting from allowing non-hypertext protocols in the URL. The vulnerability has since been fixed.

Thank you to Guillaume (@gverdun) for translating Link Lock into French, and hosting a translated version. Likewise, thanks to Nele Hirsch (@eBildungslabor) for translating and hosting a German version!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].